how to configure ssl in Centos 5.9 ??

Zidan86

New Member
Joined
Jul 8, 2018
Messages
5
Reaction score
0
Credits
0
Hiii ,



how to configure ssl in Centos 5.9 ,, the type server is apache of LAMP ???
 


wizardfromoz

Administrator
Staff member
Gold Supporter
Joined
Apr 30, 2017
Messages
7,193
Reaction score
6,087
Credits
24,102
Hi @Zidan86 and welcome to linux.org :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
wizardfromoz
 

HostechSupport

New Member
Joined
Sep 17, 2018
Messages
13
Reaction score
4
Credits
0
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 www.example.com:443
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]

 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Members online


Top