Determine the location of OpenSSL’s default openssl.cnf file. On RHEL, it is at /etc/pki/tls/openssl.cnf. If not, use the find command to locate the file, that is find / -name openssl.cnf
Copy the openssl.cnf file to the certificates home directory, for example cp /etc/pki/tls/openssl.cnf /certificates
Change directories to the certificates home directory, for example cd /certificates
Edit the copied version of the openssl.cnf file with the following changes, for example vi /certificates/openssl.cnf
ADDITIONAL INFORMATION:
Modify the following line in the section [ CA_default ]
Change from:
dir = ../../CA
Change to:
dir = ./CA
Comment out the two appearances of the following line:
Change from:
nsComment = "OpenSSL Generated Certificate"
Change to:
#nsComment = "OpenSSL Generated Certificate"
Uncomment the following line and add v3_req to extensions.
Change from:
# X.509v3 extensions to use:
# extensions =
Change to:
# X.509v3 extensions to use:
extensions = v3_req
Uncomment the following line.
Change from:
# req_extensions = v3_req # The extensions to add to a certificate request.
Change to:
req_extensions = v3_req # The extensions to add to a certificate request.
Change the following line in the [ v3_req ] section.