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!

how to configure ssl in Centos 5.9 ??

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

  1. Zidan86

    Zidan86 New Member

    Joined:
    Jul 8, 2018
    Messages:
    1
    Likes Received:
    0
    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

    Joined:
    Apr 30, 2017
    Messages:
    1,704
    Likes Received:
    1,776
    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
     
  3. HostechSupport

    HostechSupport New Member

    Joined:
    Sep 17, 2018
    Messages:
    4
    Likes Received:
    3
    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