Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

  1. More ways to get the info! - we shoot all of our new original content out as well as random messages on Twitter and our newsletter!. Twitter | Newsletter
    Dismiss Notice

how to configure ssl in Centos 5.9 ??

Discussion in 'Server Security' started by Zidan86, Jul 8, 2018.

  1. Zidan86

    Zidan86 New Member

    Jul 8, 2018
    Likes Received:
    Hiii ,

    (Log in to hide this advertisement)

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

    wizardfromoz Super Moderator
    Staff Member Gold Supporter

    Apr 30, 2017
    Likes Received:
    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
  3. HostechSupport

    HostechSupport New Member

    Sep 17, 2018
    Likes Received:
    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]

    wizardfromoz likes this.

Share This Page