United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
While Red Hat includes a simplistic tool (a Makefile) to generate SSL certificates, it is deprecated for sites where there is a need to specify a password with each httpd startup or for servers with multiple certificates.
This process can be accomplished with the OpenSSL package provided by Red Hat Enterprise Linux. The following items are required for SSL with Apache:
To generate an SSL key without a passphrase (recommended), use a command such as this:
openssl genrsa -out /etc/httpd/conf/ssl.key/domain-name.com.key 1024
To request the official certificate, generate a .csr file like this:
openssl req -new -key /etc/httpd/conf/ssl.key/domain-name.com.key -out /etc/httpd/conf/ssl.csr/domain-name.com.key.csr
Enter the information when the prompt appears. Enter a "Common Name", which is *MUST*, that matches the exact hostname which is to be used for the SSL site. For example, if customers are required to be able to connect to https://www.mycompany.com then enter "www.mycompany.com" as the "Common Name".
If self-signed certificate is required be created (which is useful in a testing scenario), execute the following:
openssl req -new -key /etc/httpd/conf/ssl.key/domain-name.com.key -x509 -out /etc/httpd/conf/ssl.crt/domain-name.com.crt -days 999