CSR: Apache 2.x

Follow these instructions to generate a CSR for your Web site. When you have completed this process, click the "close" button below to close this window and continue to the next step. OpenSSL is the open source project that replaced SSLeay. If you are using SSLeay on your system instead of OpenSSL, substitute ssleay with openssl for the commands.

If you have not already set up a secure virtual host or would like to learn more about SSL, refer to the following link for more information: http://httpd.apache.org/docs-2.0/ssl/ssl_faq.html#installation

Note: The examples below use the following naming conventions: "Your Private Key" = "domainname.key"; "Your Web Server Certificate" = "domainname.crt"

  1. Install OpenSSL, if not found on your server. (The OpenSSL version should match your Apache version)
  2. Create a RSA private key for your Apache server, with triple-DES encryption and PEM-formatted:

    openssl genrsa -des3 -out domainname.key 1024

    Warning: Backup this key and its passphrase. If you lose the private key or forget its passphrase, you must purchase another certificate.

  3. You could also create a private key without triple-DES encryption:

    openssl genrsa -out domainname.key 1024 

    You can view the contents of the private key by using the following command: 

    openssl rsa -noout -text -in domainname.key 

    The private key text should begin with -----BEGIN RSA PRIVATE KEY----- and end with -----END RSA PRIVATE KEY-----.
  1. Now create a Certificate Signing Request using the RSA private key created above (output will be PEM format): 

    openssl req -new -key domainname.key -out domainname.csr

    * Note: You will be prompted for your PEM passphrase if you included the "-des3" switch in step 3.
  2. When creating a CSR you must follow these conventions. Enter the information to be displayed in the certificate. The following characters can not be accepted: < > ~ ! @ # $ % ^ * / \ ( ) ?.,&

    DN Field

    Explanation

    Example

    Common Name The fully qualified domain name for your web server. This must be an exact match. If you intend to secure the URL https://www.geotrust.com, then your CSR's common name must be www.geotrust.com.
    Organization The exact legal name of your organization. Do not abbreviate your organization name. GeoTrust
    Organization Unit Section of the organization Marketing
    City or Locality The city where your organization is legally located. Wellesley Hills
    State or Province The state or province where your organization is legally located. Can not be abbreviated. Massachusetts
    Country The two-letter ISO abbreviation for your country. US

  3. You will be prompted for extra attributes (i.e., a challenge password and optional company name); we recommend you leave these attributes empty (just hit Enter).
  4. You can verify the contents of your CSR by using the following command:

    openssl req -noout -text -in domainname.csr 

  5. Submit your CSR to GeoTrust - you will be asked to complete the agreement and the enrollment form as well.

  • 0 Gebruikers die dit nuttig vonden
Was dit antwoord nuttig?

Related Articles

Generating a Certificate Signing Request (CSR) using Apache mod_ssl/OpenSSL

  A CSR is a file containing your certificate application information, including your...

CSR Generation: WHM/CPanel

Generating a CSR using WHM/CPanel Generate an SSL certificate   You can generate an SSL...

CSR Generation: HSphere

Generating a Certificate Signing Request (CSR) in H-Sphere Log into your user Control Panel....

CSR Generation: cPanel 11

cPanel's SSL/TLS functions are handled by the SSL/TLS Manager module. This area will...

CSR: Apache + ApacheSSL

Follow these instructions to generate a CSR for your Web site. When you have completed this...