title: Using a passphrase protected private key with crypto.createSign
body: <p>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:</p>
  
  <pre><code>&gt; var sig = crypto.createSign('RSA-SHA256').update('psst').sign(pk,'hex');
  Enter PEM pass phrase:
  </code></pre>
  
  <p>And node just locks up at this point. I can't seem to find an option to pass the passphrase in programatically.</p>