How can I generate RSA key pair and make a PKCS #10 request using OpenSSL?
Generate the RSA key pair and certificate signing request (CSR) as follows (use the default file names key.pem and req.pem or substitute your own file names): $openssl req -newkey rsa:2048 -keyout key.pem -out req.pem -nodes If you wish to encrypt your private key then do not include the -nodes option.