OpenSSL Generating a Certificate Signing Request: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
#: <tt>'''cat << EOL >> <config_file>.cnf'''</tt> | #: <tt>'''cat << EOL >> <config_file>.cnf'''</tt> | ||
# Generate the CSR from the private key using openssl. | # Generate the CSR from the private key using openssl. | ||
# | #: <tt>'''# openssl req -new -key <key_name>.key -out <csr_name>.csr'''</tt> | ||
# Enter the information as required by the prompts. | # Enter the information as required by the prompts. | ||
# Verify the checksum of the key matches the checksum CSR. | # Verify the checksum of the key matches the checksum CSR. |
Revision as of 03:51, 15 November 2020
Generate the Certificate Signing Request (CSR)
Apache with mod_ssl Enabled (No subjectAltName)
- If required follow the OpenSSL Generating a Private Key procedure.
- For Apache purposes, use the key with no pass phrase to generate the CSR file.
- Generate the CSR from the private key using openssl.
- # openssl req -new -key <key_name>.key -out <csr_name>.csr
- Enter the information as required by the prompts.
- Verify the checksum of the key matches the checksum CSR.
- # openssl req -noout -modulus -in <csr_name>.csr | openssl md5
Apache with mod_ssl Enabled (With subjectAltName)
- If required follow the OpenSSL Generating a Private Key procedure.
- For Apache purposes, use the key with no pass phrase to generate the CSR file.
- Create a config file to be configured with the multiple subdomains.
- cat << EOL >> <config_file>.cnf
- Generate the CSR from the private key using openssl.
- # openssl req -new -key <key_name>.key -out <csr_name>.csr
- Enter the information as required by the prompts.
- Verify the checksum of the key matches the checksum CSR.
- # openssl req -noout -modulus -in <csr_name>.csr | openssl md5