What I am trying to do is, create a CSR and with a private key that is password protected (the key).
In OpenSSL I can create a private key with a password like so:
openssl genrsa -des3 -out privkey.pem 2048
Is there some way I can use the key I just created and generate a CSR using the key?
If not is there some way I can generate a CSR along with a PASSWORD PROTECTED private key?
This is the second example from the documentation of OpenSSL req:
Note that, if you do this directly with
req(see 3rd example), if you don’t use the-nodesoption, your private key will also be encrypted:(Despite what the documentation says, it’s not exactly the same as the second example, since it doesn’t use
-des3, but you would have done so anyway.)