|
|
||
|
||
|
|
| Red Hat Documentation |
Creating Your Key and Certificate RequestNext, you'll generate an encryption key and a certificate request. You need the key to create the certificate request. You need the certificate request in order to apply for a certificate from a CA. Generating a Keycd to the /etc/httpd/conf directory. Type in the following single command (all on one line), and it will generate your key:
Your system will display a message while it generates the key. After it is finished, make sure the key's permissions are correctly set with the following command:
The server.key file should be owned by the root user on your system and should not be accessible to any other user. Make a backup copy of this file and keep the backup copy in a safe, secure place. You need the backup copy because if you ever lose the server.key file after using it to create your certificate request, your certificate will no longer work and the CA will not be able to help you. Your only option would be to request (and pay for) a new digital certificate. Generating a Certificate RequestOnce you've created a key, the next step is to generate a certificate request which you will need to send to the CA of your choice. Type in the following single command (all on one line):
Your system will display some instructions and then ask for a series of responses from you. Your inputs will be incorporated into the certificate request. The display, with example responses, will look like this:
The default answers appear in brackets ([]) immediately after each request for input. For example, the first information required is the name of the country where the certificate will be used, shown like the following:
The default input, in brackets, is US. To accept the default, just press Enter, or fill in your country's two letter code. You will have to type in the rest of the inputs (State or Province Name, Locality (City) Name, Company (Organization) Name, Department Name, Server Host Name, and Administrators E-mail address). All of these should be self-explanatory, but you need to follow these guidelines:
When you've finished entering your information, a file named server.csr will be created. server.csr is your certificate request, ready to send to your CA. Next, you must test your Red Hat Linux Secure Server to make sure everything is working properly. To do that, you can either create a test certificate yourself or you can send the certificate request off to a CA in order to get a test certificate. A test certificate from a CA is free and will be e-mailed to you immediately. You will not have to provide any proof of your organization's identity to get a test certificate from a CA. Note that a test certificate lets you test your Red Hat Linux Secure Server to see if it works, but it is not the same thing as a signed certificate. A test certificate can be used for a limited period of time and you don't have to pay for it. A test certificate will not be accepted by browsers which would normally accept that CA's certificates without asking the user. The next section covers how to generate your own test certificate and how to get test certificates from both VeriSign and Thawte. | ||||||||||||
|
|