Configure HTTPS on Apache Web Server

Following are the simple steps to configure https on linux machine

1. yum install mod_ssl
2. yum install crypto-utils
3. genkey
e.g. genkey www.example.com
4. Click Next. and choose 1024 as key size
5. select No if asked “Would you like to send a Certificate to (CSR) to a Certificate Authority (CA)?
6. Do not select “Encrypt the private key” and hit next
7. Fill the required information. Check files created in /etc/pki/tls/private and /etc/pki/tls/certs directories.
8. vi /etc/httpd/conf.d/ssl.conf and edit lines
SSLCertificateFile /etc/pki/tls/certs/www..example.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/www.example.com.key
9. uncomment DocumentRoot
10. service httpd restart

Leave a Comment

Your email address will not be published.