Certificate Signing Request (CSR) Generation Instructions for Apache SSL

Step 1: Generate Private Key
 
The OpenSSL package 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 need a 2048 bit key size!
  • 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.
  • To bypass the pass phrase requirement, omit the -des3 option when generating the private key. If the private key is left unprotected, we recommend 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, the Certification Authority 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.



Was this answer helpful?

Also Read

If I buy an Organization Validated (OV) SSL Certificate, which document(s) do I need to provide?

Organization Validated (OV) verification requires checking your business registration. If the...

How To Fix The Warning : "Site Contains Secure & Non-Secure Items"

A SSL certificate provides cover for all your website files and folders, which are included in...

How can I install my SSL certificate on more than one server?

Many SSL certificate licences allow to install the same certificate on an unlimited number of...

What's the difference between DV, OV & EV SSL certificates?

Domain Validation (DV)DV or a Domain Validated Certificate is a certificate that only requires...

What is an intermediate certificate and how to get it?

An intermediate certificate is a file needed by the web browser to identify the C.A. who issued...