certtool: unable to decrypt PKCS#8 object in batch mode
bob.p12.bag3.key is a PEM-encoded PKCS#8 encrypted private key object, protected with a three character ascii password bob
.
certtool --key-info --password bob < bob.p12.bag3.key
produces another PKCS#8 encrypted private key object to stdout.
but interactively:
certtool --key-info < bob.p12.bag3.key
prompts me for a password. when i supply the password at the prompt, the output is an unencrypted private key, with the usual full --key-info
details.
I'd like to be able to do that conversion in automated mode, rather than needing to enter the password at the terminal.