Ask a Question

Advanced Search

Solution ID : SO13986

Last Modified : 05/02/2018

Certificate Signing Request (CSR) Generation Instructions for Stronghold Server


This document provides instructions for generating a Certificate Signing Request (CSR) for Stronghold.  If this document does not work with the server, RapidSSL recommends contacting the server vendor or the organization which supports Stronghold.

Stronghold keys and certificates are managed through three scripts: genkey, getca and genreq. These are part of the normal Stronghold distribution. Keys and certificates are stored in the directory $SSLTOP/private/, where SSLTOP is typically /usr/local/ssl. To generate a key pair and CSR for your server:

To generate a key pair and CSR, perform following steps:

  1. Run genkey, specifying the name of the host or virtual host:

    genkey [hostname]
  2. The genkey script displays the filenames and locations of the key file and CSR file it will generate:  

    Key file: /usr/local/www/[hostname].key 
    CSR file: /usr/local/www/[hostname].cert 

    NOTE: If you already have a key for your server, run genreq [hostname] to generate only the CSR.
  3. Click Enter. The genkey script reminds you to be sure you are not overwriting an existing key pair and certificate.
  4. When prompted, enter a key size in bits, which must be at least 2048 bits.
  5. When prompted, enter random key strokes. Stop when the counter reaches zero and genkey beeps. This random data to create a unique public and private key pair.
  6. When prompted, enter y to create the private key and CSR.
  7. Select RapidSSL as your Certicicate Authority.
  8. Enter all of the required information:

    - Country Name (C): Use the two-letter code without punctuation for country, for example: US
    - State or Province (S): Spell out the state completely; do not abbreviate the state or province name, for example: California
    - Locality or City (L): The Locality field is the city or town name, for example: Mountain View
    - Organization (O): If your company or department has an &, @, or any other symbol using the shift key in its name, you must spell out the symbol or omit it to enroll, for example: XY & Z Corporation would be XYZ Corportation or XY and Z Corportation.
    - Organizational Unit (OU): This field is the name of the department or organization unit making the request, for example: IT Dept
    - Common Name (CN): The Common Name is the Host + Domain Name, for example:
  9. Press Enter.
  10. Back up your key file and CSR.  If the private key is lost, it can not be regenerated.
  11. You have just created a key pair and a CSR. To copy and paste the information into the enrollment form, open the file in a Notepad or Vi that does not add extra characters.
  12. Go to Enrollment.

Contact Information

During the verification process, RapidSSL may need to contact your 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 SSL certificate has been issued, refer to this link for installation instructions.