Dexus / pem

Create private keys and certificates with node.js
Other
570 stars 129 forks source link

Avoid using stdin #271

Closed jonnius closed 2 years ago

jonnius commented 4 years ago

I want to use pem to check whether a cert belongs to a key by comparing their modulus on a server. If the key is encrypted, the getModulus call prompts for the password on stdin (on my server, causing it to freeze). How can I tell the pem module to never use stdin / never let openssl use stdin (e.g. by setting stdin to /dev/null)?

Dexus commented 2 years ago

I think it had already fixed, but if not here is the docs