Frequently Asked Questions
Q: How to generate Certificate and Private Key?
A: Perform the following steps to generate the Certificate and Private Key:
-
Download and install OpenSSL.
-
Open Windows File Explorer and navigate to the OpenSSL bin directory as follows:
c:\OpenSSL\bin\
-
Open the command prompt and enter the following command to begin generating a certificate and private key pair:
openssl req -newkey rsa:2048 -x509 -keyout <privatekeyname>.pem -out <certificatename>.pem -days <number_of_days_for certfiicate_validity>
-
You will then be prompted to enter applicable Distinguished Name (DN) information, totaling seven fields:
Enter the value as applicable and press enter
-
Convert
.pem
key generated to key format using the following command:openssl rsa -in <privatekeyname>pem -out <privatekeyname>.key -des3
-
Once completed, you will find the
<certificatename>.pem
and<privatekeyname>.key
files created under the\OpenSSL\bin\
directory.