OpenSSL Generating a Certificate Signing Request: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== Generate the Certificate Signing Request (CSR) == === Apache with mod_ssl Enabled === # Generate the CSR from the private key using openssl. ## <tt>'''# openssl req -new -k...")
 
No edit summary
Line 1: Line 1:
== Generate the Certificate Signing Request (CSR) ==
== Generate the Certificate Signing Request (CSR) ==
=== Apache with mod_ssl Enabled ===
=== Apache with mod_ssl Enabled ===
# If required follow the [[Generating a Private SSL 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.
# Generate the CSR from the private key using openssl.
## <tt>'''# openssl req -new -key <private key name>.key -out <csr name>.csr'''</tt>
## <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, this will be used to verify the CSR and the self signed certificate.
# Verify the checksum of the key, this will be used to verify the CSR and the self signed certificate.
## <tt>'''# openssl req -noout -modulus -in <CSR.csr> | openssl md5'''</tt>
## <tt>'''# openssl req -noout -modulus -in <csr_name>.csr | openssl md5'''</tt>


== Further Reading ==
== Further Reading ==

Revision as of 17:57, 12 February 2013

Generate the Certificate Signing Request (CSR)

Apache with mod_ssl Enabled

  1. If required follow the Generating a Private SSL Key procedure.
  2. For Apache purposes, use the key with no pass phrase to generate the CSR file.
  3. Generate the CSR from the private key using openssl.
    1. # openssl req -new -key <key_name>.key -out <csr_name>.csr
  4. Enter the information as required by the prompts.
  5. Verify the checksum of the key, this will be used to verify the CSR and the self signed certificate.
    1. # openssl req -noout -modulus -in <csr_name>.csr | openssl md5

Further Reading

  1. How to Generate SSL key, CSR, and Self Signed Certificate for Apache