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)?
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
)?