Use stdin instead of bash args to pass node filenames and base64 data. Use tempfile for master cert data