Steps
Creating .crt and .key
- Download OpenSSL directly with this link to sourceforge.net or from us using this link. You will be downloading version 1.1.1h_win32
- Open your downloads and extract the contents of the zip folder.
- Navigate inside the OpenSSL folder
- The top of File Explorer should show the current path. If OpenSSL was extracted to the downloads folder, it should say something close to “This PC > Downloads > OpenSSL”
- Type “cmd” in the folder path and hit the “Enter” key
- In the new command prompt window. It should have opened in the current working directory. Type the three commands.
- set OPENSSL_CONF=openssl.cnf
- openssl.exe
- req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt
- Follow the steps in the prompt to finish creating your self-signed cert
If successful it should look like the below image.
The .crt and the .key will be in the OpenSSL folder.
Creating .pfx
- Type the below command
- pkcs12 -export -out certificatePFX.pfx -inkey privateKey.key -in certificate.crt
- Enter a password and confirm it
- This will create the .pfx certificate
- Below is what the commands should look like with no problems.
The .pfx will be in the OpenSSL folder.
Sources
SourceForge.net – Download Software
Stackoverflow.com – Redirecting to the correct folder
helpcenter.gsx.com – Creating the SSL Cert