I am creating private key and csr as follows:
openssl req -nodes -newkey rsa:2048 -keyout ./private.key -out ./mycsr.csr -subj "CN=blah"
I understand since the above command has a -nodes(no des) , the private key will not be having a passphrase.
I want to generate private key with passphrase and create a csr out of this key. How do I do that in non-interactive way.