openssl genrsa -out privateKey.pem 2048
- Explanation of the parameters provided in the command line:
- openssl genrsa: the command for executing OpenSSL to generate a new "RSA" encrypted key.
- -out privateKey.pem : the private key file "privateKey.pem" is generated to store the private key.
- 2048 : the length "2048" bits is used to generate the new RSA encrypted key.