Skip to content

Instantly share code, notes, and snippets.

@Torsten85
Created October 28, 2013 18:08
Show Gist options
  • Save Torsten85/7201667 to your computer and use it in GitHub Desktop.
Save Torsten85/7201667 to your computer and use it in GitHub Desktop.
var openssl = spawn('openssl', [ 'smime'
, '-sign'
, '-binary'
, '-signer', '/path/to/cert.pem'
]);
openssl.stdin.write(fileToSignAsBuffer);
openssl.stdin.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment