ohh*_*hho 6 ssl centos5 apache-2.2
a后yum update,启动apache时出现错误,在/var/log/httpd/error_log:
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[error] SSL Library Error: -8181 Certificate has expired
[error] Unable to verify certificate 'Server-Cert'. Add "NSSEnforceValidCerts off" to nss.conf so the server can start until the problem can be resolved.
Run Code Online (Sandbox Code Playgroud)
现在我暂时放NSSEnforceValidCerts off于nss.conf有网站的运行。我该如何修复错误?
似乎在mod_nss安装时创建了证书。
此证书已过期,无法重新启动httpd(Apache)。
你真的会用mod_nss吗?
如果您不使用,mod_nss那么最好的办法是简单地卸载该软件包。
但是,您有一些选择:
删除nss.conf从/etc/httpd/conf.d(这将导致mod_nss不被加载)。
卸载/重新安装您的 nss rpm 模块。重新安装时,将生成一个新证书,您的问题将消失几年:
rpm -e mod_nss
rm /etc/httpd/alias/*
yum install mod_nss
service httpd restart
Run Code Online (Sandbox Code Playgroud)| 归档时间: |
|
| 查看次数: |
23501 次 |
| 最近记录: |