Using a passphrase protected private key with crypto.createSign

Viewed 6384

I'm trying to sign and verify a message using the node.js crypto API and a passphrase protected private key which gets me this:

> var sig = crypto.createSign('RSA-SHA256').update('psst').sign(pk,'hex');
Enter PEM pass phrase:

And node just locks up at this point. I can't seem to find an option to pass the passphrase in programatically.

1 Answers
Related