how to configure ssl in Centos 5.9 ??


Super Moderator
Staff member
Gold Supporter
Hi @Zidan86 and welcome to :D

I don't use CentOS currently, but some of our other Members do, including our Admin.

I expect someone will be along with ideas shortly.

Cheers and good luck

Chris Turner


New Member
Following are the steps to configure ssl in CentOS

1. Make sure that mod_ssl is installed.

# rpm -qa | grep mod_ssl

2. If mod_ssl package is not installed, install it using yum utility :

# yum install mod_ssl

Edit SSL Certificate And Keys through configurations

1. Edit file /etc/httpd/conf.d/ssl.conf with the filenames of the server name and SSL Certificate

information. The edited entries are

a. ServerName
b. SSLCertificateFile
c. SSLCertificateKeyFile

# vi /etc/httpd/conf.d/ssl.conf
# ServerName
SSLCertificateFile /etc/pki/tls/certs/localhost.crt
SSLCertificateKeyFile /etc/pki/tls/private/localhost.key

– The ServerName must match the Common Name (CN) of the SSL certificate
# openssl x509 -noout -text -in localhost.crt | grep CN[/code]


Members online

Latest posts