Generating A Key - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

Chapter 25. Apache HTTP Secure Server Configuration
on your past experiences, on the experiences of your friends or colleagues, or purely on monetary
factors.
Once you have decided upon a CA, you need to follow the instructions they provide on how to
obtain a certificate from them.
4. When the CA is satisfied that you are indeed who you claim to be, they provide you with a digital
certificate.
5. Install this certificate on your secure server and begin handling secure transactions.
Whether you are getting a certificate from a CA or generating your own self-signed certificate, the first
step is to generate a key. Refer to

25.6. Generating a Key

You must be root to generate a key.
First, use the cd command to change to the /etc/httpd/conf/ directory. Remove the fake key and
certificate that were generated during the installation with the following commands:
rm ssl.key/server.keyrm ssl.crt/server.crt
Next, create your own random key. Change to the /usr/share/ssl/certs/ directory and type in
the following command:
make genkey
Your system displays a message similar to the following:
umask 77 ; \
/usr/bin/openssl genrsa -des3 1024 > /etc/httpd/conf/ssl.key/server.key
Generating RSA private key, 1024 bit long modulus
.......++++++
................................................................++++++
e is 65537 (0x10001)
Enter pass phrase:
You now must enter in a passphrase. For security reason, it should contain at least eight characters,
include numbers and/or punctuation, and it should not be a word in a dictionary. Also, remember that
your passphrase is case sensitive.
Note
You are required to remember and enter this passphrase every time you start your secure
server. If you forget this passphrase, the key must be completely re-generated.
Re-type the passphrase to verify that it is correct. Once you have typed it in correctly, /etc/httpd/
conf/ssl.key/server.key, the file containing your key, is created.
Note that if you do not want to type in a passphrase every time you start your secure server, you must
use the following two commands instead of make genkey to create the key.
258
Section 25.6, "Generating a Key"
for instructions.

Advertisement

Table of Contents
loading

Table of Contents