尝试启动 httpd 服务时显示以下错误
Job for httpd.service failed because the control process exited with error code. See
"systemctl status httpd.service" and "journalctl -xe" for details.
查看日志文件时,“ssl_error_log”文件中出现以下内容:
[Fri Jul 16 14:33:01.773030 2021] [ssl:error] [pid 5274] AH02203: Init: Private key
not found
显然密钥文件在正确的目录中并且不为空,那么这样的错误是什么意思呢?
附加信息:
SSLCertificateFile /etc/pki/tls/certs/testvm_am_com_cert.cer
SSLCertificateKeyFile /etc/pki/tls/private/testvm.am.com.key
ls -l /etc/pki/tls/private
total 12
-rw-r--r--. 1 root root 2748 Jul 14 20:02 testvm_am_com_cert.cer
-rw-r--r--. 1 root root 1704 Jul 14 20:04 testvm.am.com.key
-rw-------. 1 root root 1675 Jul 5 15:45 localhost.key