Apachebash
不能啓動,error_log提示:ide
[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不匹配致使,使用下列命令檢測兩個文件是否匹配,輸出結果相同則爲匹配:spa
openssl x509 -noout -modulus -in server.crt | openssl md5 openssl rsa -noout -modulus -in server.key | openssl md5
若是輸出結果匹配,檢測是否爲httpd故障,可見httpd日誌,另外若是認證鑰文件路徑錯誤,httpd啓動時會報錯。日誌