To generate a CSR, you first need to create a key pair for your server. These two items are a digital certificate key pair and cannot be separated. If you lose your public/private key file or your password and generate a new one, your SSL Certificate will no longer match and a replacement has to be made.
Generate Keypair and CSR
NOTE: A key length of 1024 bit is the default, but Geotrust recommends the use of a 2048 bit key.
If the request is intended for an Extended Validation certificate or a certificate with a validity period beyond December 31, 2013, the 2048 bit key length will need to be selected.
Step 1: Generate a Private Key and Server Certificate
- Change to the /path/to/ssl1.5/bin directory.
- Start the Covalent SSL Certificate and Key Management Tool.
- For the graphical interface, execute: ./sslctl. For the text interface, execute: ./sslctl –textmode. The main screen displays.
- Select Generate Certificate and Key.
- Enter the name of the server you want to certify.
- Select the size of your private key. Geotrust recommends a key size of 2048 bits.
- Enter and confirm a pass phrase for your private key.
- Define and enter the information for your server certificate.The server certificate is stored in the directory /path/to/ssl1.5/certs and is named yourserver.domain.cert (for example, www.covalent.net.cert).
The key is stored in the directory /path/to/ssl1.5/keys and is named yourserver.domain.key (for example, www.covalent.net.key).
This step will create the X.509 attributes of the certificate:
Country Name (C): Use the two-letter code without punctuation for country, for example: US or CA.
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: Berkeley. Do not abbreviate. For example: Saint Louis, not St. Louis.
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. Example: XY & Z Corporation would be XYZ Corporation or XY and Z Corporation.
Organizational Unit (OU): 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.
Common Name (CN): The Common Name is the Host + Domain Name. It looks like “www.company.com” or “company.com”.
Geotrust certificates can only be used on Web servers using the Common Name specified during enrollment. For example, a certificate for the domain “domain.com” will receive a warning if accessing a site named “www.domain.com” or “secure.domain.com”, because “www.domain.com” and “secure.domain.com” are different from “domain.com”.
Please do not enter your email address, challenge password or an optional company name when generating the CSR.
- Modify the Apache configuration file if necessary.If you are securing the main server and using the included httpsd.conf, the file is configured correctly by default. No modifications are necessary. If you are securing an additional virtual host, you must include two containers for the secure site in the configuration file:
Include a virtual host for HTTP requests listening on port 80.
Include an SSL virtual host for HTTPS requests listening on port 443. The HTTPS server must use an IP-based address and should include the SSLCertificateFile and SSLCertificateKeyFile directives.
- Run the server with the key and temporary server certificate.
If your server is running, stop the server by executing: /path/to/apache1.3/bin/covalent-faststart-ctl stop
- Start the server with Covalent SSL by executing: /path/to/apache1.3/bin/covalent-faststart-ctl startssl During server start-up, you will be prompted to enter the pass phrase for the server certificate.
- Make a backup of your server certificate and private key.
Step 2: Generate a CSR.
- Select Generate Certificate Signing Request from the Covalent SSL Certificate and Key Management Tool. You are prompted to select a server certificate to be signed. Select Geotrust, Inc.
- Covalent SSL automatically generates the correct format CSR for Geotrust, Inc.
- Enter the pass phrase you used to encrypt the key that corresponds to this server certificate.
- Define and enter the information for your CSR.
- Select a directory and filename for the generated CSR, for example /root/cert-2507. Covalent SSL saves the CSR to the file you designated.
- 6. Go to the enrollment and enter the information requested in the enrollment form.