How to Generate a Self Signed Certificate and Private Key using OpenSSL - JohnHau/mis GitHub Wiki
Open Windows File Explorer. Navigate to the OpenSSL bin directory. c:\OpenSSL\bin\ in our example. Right-click the openssl.exe file and select Run as administrator. Enter the following command to begin generating a certificate and private key: req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -keyout privateKey.key -out certificate.crt You will then be prompted to enter applicable Distinguished Name (DN) information, totaling seven fields: OpenSSL_Cert_Generation_command_steps.png Once completed, you will find the certificate.crt and privateKey.key files created under the \OpenSSL\bin\ directory. Congratulations, you now have a private key and self-signed certificate!