SSL Library Error: -8181 Certificate has expired

Seems that a certificate was created when mod_nss was installed.

This certificate has expired, preventing the restarting of httpd (Apache).

Do you really use mod_nss ?

If you aren't using mod_nss then your best bet is to simply uninstall the package.

However you have some alternatives :

  • Remove nss.conf from /etc/httpd/conf.d (this will cause mod_nss to not be loaded).

  • Uninstall/re-install your nss rpm modules. On re-installation a new certificate will be generated and your problem will go away for a few more years :

    rpm -e mod_nss
    rm /etc/httpd/alias/*
    yum install mod_nss
    service httpd restart
    

The Server-Cert is expired, checked by:

certutil -d /etc/httpd/alias -L -n Server-Cert

At the moment, mod_nss is disable by removing nss.conf from /etc/httpd/conf.d/.