A private key is required to create an SSL keypair.
-
Download and install the
openssl.exe file from the OpenSSL website.
In the following example, the openssl.exe file is installed to the c:\openssl folder.
- If the read-only attribute is set, remove this attribute from the c:\openssl folder.
- Open a command prompt.
- Move the current directory to the folder to which the key file is output, such as c:\key.
-
Execute the following command:
c:\key > c:\openssl\bin\openssl genrsa -out server.key 2048
A file called server.key is created in the c:\key folder. This file becomes the private key.