httpd 沒法啓動

啓動httpd出現錯誤
Starting httpd: Syntax error on line 112 of /etc/httpd/conf.d/ssl.conf:
SSLCertificateFile: file '/etc/pki/tls/certs/ca.crt' does not exist or is empty
[FAILED]



$ openssl req -new -x509 -nodes -out server.crt -keyout server.key
These can be used as follows in your  httpd.conf  file:
             SSLCertificateFile    /path/to/this/server.crt
             SSLCertificateKeyFile /path/to/this/server.key
產生的.crt .key 文件拷到須要的目錄就能夠了
問題解決
相關文章
相關標籤/搜索