Feb 18, 2020 · Download it and copy it to the OpenSSL-Win64 folder. Afterwards, set the new location to the tool using the below command. set OPENSSL_CONF=c:\OpenSSL-Win64\openssl.cnf Open the config file and customize it as necessary. Quick Links. OpenSSL; Win32/Win64 OpenSSL; Install OpenSSL on a windows machine; Windows OpenSSL.cnf File Example The above more or less injects the bare minimum config file info openssl needs. Note, included extra DNS:localhost as a SAN to allow testing via localhost more easily. Remove that extra bit from the script if you don't want it. Credit. bcardarella's answer is great (can't comment/up-vote due insufficient rep). However, the answer uses an openssl genrsa -out example.com.key 2048 Certificate Signing Request – CSR generation. Next, we will generate CSR using private key above AND site-specific copy of OpenSSL config file. openssl req -new -key example.com.key -out example.com.csr -config example.com.cnf. Please note -config switch. If you forget it, your CSR won’t include openssl genrsa -out private.key 4096 Generate a Certificate Signing Request. openssl req -new -sha256 \ -out private.csr \ -key private.key \ -config ssl.conf (You will be asked a series of questions about your certificate. Answer however you like, but for 'Common name' enter the name of your project, e.g. my_project) Now check the CSR: # Simple Root CA # The [default] section contains global constants that can be referred to from # the entire configuration file. It may also hold settings pertaining to more # than one openssl command. [ default ] ca = root-ca # CA name dir =. # Top dir # The next part of the configuration file is used by the openssl req command.

openssl is the command for running OpenSSL. req is the OpenSSL utility for generating a CSR.-newkey rsa:2048 tells OpenSSL to generate a new 2048-bit RSA private key. If you would prefer a 4096-bit key, you can change this number to 4096.-keyout PRIVATEKEY.key specifies where to save the private key file.

When OpenSSL is searching for names in the configuration file the named sections are searched first. All OpenSSL commands use the master OpenSSL configuration file unless an option is used in the command to specify an alternative configuration file. The configuration file is explained in detail in the config(5) man page.

Look for the Default OpenSSL config row; The file location will be listed in there; Localhost. If you are running your MainWP Dashboard on the localhost, here you can find the usual locations of the openssl.cnf file. XAMPP. On the XAMPP installations, the openssl.cnf file usually can be found here: c:\xampplite\apache\conf\openssl.cnf When OpenSSL is searching for names in the configuration file the named sections are searched first. All OpenSSL commands use the master OpenSSL configuration file unless an option is used in the command to specify an alternative configuration file. The configuration file is explained in detail in the config(5) man page.