I have an application that needs to communicate with the bank for online transactions. I am using OpenSSL 3.0.8.7 in Windows 11. I generated a private key using:
openssl genrsa -out rsa_key.pem 2048
Then a Certifate Signing Request using:
openssl req -new -key rsa_key.pem -out csr.pem -subj "[REDACTED]"
I sent the CSR to the bank and received back a signed certificate (signed_cert.pem) and the bank CA (ca.pem). I am trying to create a pkcs#12 keystore to use in my application using
openssl pkcs12 -export -CAfile ca.pem -inkey rsa_key.pem -certfile signed_cert.pem -passout pass:[REDACTED] -out keystore.p12
When I do OpenSSL gives no output, but just keeps running until I kill the process. No output, no errors. What am I doing wrong?
-nodes
and/or-debug
$\endgroup$signed_cert.pem
) as-in
, or by redirecting stdin. If you don't do either,openssl pkcs12
waits for you to manually enter the cert which you didn't and probably can't. As you found in your self-answer you may also include the key on-in
/stdin (first) instead of using-inkey
, and the CA/chain cert(s) instead of using-certfile
. But this isn't really cryptography.-nodes
onpkcs12 -export
is ignored and does nothing. $\endgroup$