17
Dec

When your server cert key expires

   Posted by: RobPatton   in Linux/Hosting

Renewing a Self-signed cert on Centos

Started getting a warning email every day..

################# SSL Certificate Warning ################

Certificate for hostname ‘webhost’, in file (or by nickname):
/etc/pki/tls/certs/localhost.crt

The certificate needs to be renewed; this can be done
using the ‘genkey’ program.

Browsers will not be able to correctly connect to this
web site using SSL until the certificate is renewed.

##########################################################
Generated by certwatch(1)

Command to run for this is:

openssl req -new -days 365 -x509 -nodes -out /etc/pki/tls/certs/localhost.crt -keyout /etc/pki/tls/private/localhost.key

Then need to restart apache

systemctl restart httpd

And, we’re done!

This entry was posted on Monday, December 17th, 2018 at 10:24 am and is filed under Linux/Hosting. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a reply

You must be logged in to post a comment.