Certificate Signing Request (CSR) Generation Instructions for Apache SSL

Solution ID:    SO13985    Updated:    04/11/2016

Solution

Watch RapidSSL’s Tutorial Videos for a more visual experience!

Note:  If the video will not play, please click here to go directly to the video source.

 
This document provides instructions for generating a Certificate Signing Request on Apache. If these instructions do not work for the server, RapidSSL recommends that either the vendor of the software or an organization that supports Apache be contacted.

 
Step 1: Generate Private Key
 
The OpenSSL package and is usually installed under /usr/local/ssl/bin.
If the utility was installed elsewhere, these instructions will need to be adjusted accordingly.
 
Type the following command at the prompt:
 
openssl genrsa -des3 -out <private key file name>.key 2048
 
 
NOTE: All certificates that will expire after October 2013 must have a 2048 bit key size.
 
NOTE: If using Apache on Windows or generating a private key for use with Amazon Web Service, Plesk or cPanel please do not include -des3 as this option is not supported.
 
NOTE: To bypass the pass phrase requirement, omit the -des3 option when generating the private key. If the private key is left unprotected, RapidSSL recommends access to the server be restricted so that only authorized server administrators can access or read the private key file.
 
 
Step 2: Certificate Signing Request (CSR)
 
Type the following command at the prompt:
 
openssl req -new -key <private key file name>.key -out <csr file name>.csr 
 


NOTE: If using openSSL on Windows, the path to openssl.cnf may need to be specified, such as the following:

openssl req -new -key <private key file name>.key -config "c:\Apache Software Foundation\Apache2.2\conf\openssl.cnf" -out <csr file name>.csr 
 
This command will prompt for the following X.509 attributes of the certificate:
 
 
Country Name: Use the two-letter code without punctuation for country, for example: US or CA.
 
State or Province: Spell out the state completely; do not abbreviate the state or province name.  For example: California, not CA
 
Locality or City: The Locality field is the city or town where the organization is headquartered spelled in full. For example: Mountain View, not Mt. View
 
Company: If the company or department has an &, @, or any other symbol using the shift key in its name, the symbol must be spelled out or omitted, in order to enroll. Example: XY & Z Corporation would be XYZ Corporation or XY and Z Corporation.
 
Organizational Unit: This field is optional; but can be used to help identify certificates registered to an organization. The Organizational Unit (OU) field is the name of the department or organization unit making the request. To skip the OU field, press Enter on the keyboard.
 
Common Name: The Common Name is the Host + Domain Name. It looks like "www.company.com" or "company.com".  RapidSSL certificates issued to the www subdomain will also include the base domain as a Subject Alternative Name.
 
NOTE: Please do not enter an email address, challenge password or an optional company name when generating the CSR
 
Once the CSR has been created proceed to enroll for the certificate.  When prompted for the CSR, please open the file with a plain-text editor (Notepad, Vi) and copy/paste the full text of the CSR into the order form.
 
Step 3: Backup the private key
 
RapidSSL recommends backing up the .key file and storing of the corresponding pass phrase. A good choice is to create a copy of this file onto a diskette or other removable media. While backing up the private key is not required, having one will be helpful in the instance of server failure.
 
Contact Information
 
During the verification process, RapidSSL may need to contact the organization. Be sure to provide an email address, phone number, and fax number that will be checked and responded to quickly. These fields are not part of the certificate.

 
Once the certificate has been issued, refer to this link for installation instructions.
 
 

 

Disclaimer:

RapidSSL has made efforts to ensure the accuracy and completeness of the information in this document. However, RapidSSL makes no warranties of any kind (whether express, implied or statutory) with respect to the information contained herein. RapidSSL assumes no liability to any party for any loss or damage (whether direct or indirect) caused by any errors, omissions, or statements of any kind contained in this document.  Further, RapidSSL assumes no liability arising from the application or use of the product or service described herein and specifically disclaims any representation that the products or services described herein do not infringe upon any existing or future intellectual property rights. Nothing herein grants the reader any license to make, use, or sell equipment or products constructed in accordance with this document. Finally, all rights and privileges related to any intellectual property right described herein are vested in the patent, trademark, or service mark owner, and no other person may exercise such rights without express permission, authority, or license secured from the patent, trademark, or service mark owner. RapidSSL reserves the right to make changes to any information herein without further notice.

Contact Support

US Support:

Order Processing

Technical Support

European Support:

Order Processing

Technical Support

SSL digital certificates sales live chat.

Knowledge Center


Search Tips