Author Topic: Setup SSL for hostname working  (Read 1301 times)

0 Members and 1 Guest are viewing this topic.

Setup SSL for hostname working
« on: July 11, 2017, 12:38:54 PM »
So for those stuck trying to get a working cert for their hostname I did the following

added a virtualhost to to /usr/local/apache/conf.d/vhosts.conf

changed hostname to my desired hostname and made sure I had created an A record at my domain provider!

I used the auto SSL to generate a certificate and copied the cert and key path to


        ssl                 on;
        ssl_session_timeout 90m;
        ssl_certificate     /etc/pki/tls/certs/;
        ssl_certificate_key /etc/pki/tls/private/;
        ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
        ssl_ciphers         HIGH:!aNULL:!MD5;

save and close
replacing the ones already there with the new location


restarted Apache and my server is now green with the correct certificate