Apache
不能启动,error_log提示:
[Mon Dec 04 18:55:38 2017] [notice] caught SIGTERM, shutting down [Mon Dec 04 18:55:38 2017] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?) [Mon Dec 04 18:55:38 2017] [warn] RSA server certificate CommonName (CN) `TrustAsia TLS RSA CA G8' does NOT match server name!? [Mon Dec 04 18:55:38 2017] [error] Unable to configure RSA server private key [Mon Dec 04 18:55:38 2017] [error] SSL Library Error: 185073780 error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch [Mon Dec 04 18:55:47 2017] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Mon Dec 04 18:55:47 2017] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 PHP/5.5.9 configured -- resuming normal operations
此问题可能是因为server.key和server.crt不匹配导致,使用下列命令检测两个文件是否匹配,输出结果相同则为匹配:
openssl x509 -noout -modulus -in server.crt | openssl md5 openssl rsa -noout -modulus -in server.key | openssl md5
如果输出结果匹配,检测是否为httpd故障,可见httpd日志,另外如果认证钥文件路径错误,httpd启动时会报错。
转载于:https://blog.51cto.com/shevastar/2047361