1. 程式人生 > >httpd:RSA certificate configured for SERVER does NOT include an ID which matches the server name

httpd:RSA certificate configured for SERVER does NOT include an ID which matches the server name

tar href 認證 啟動 其他 恢復 csdn 錯誤 主機名

這個是因為ssl認證丟失了密鑰的問題,Apache的默認配置文件加載了mod_ssl模塊,而且指定密鑰對兒的位置,就是我測試salt-api時創建密鑰對兒的位置。而且還有一個錯誤就是我密鑰對兒指定的hostname和Apache指定的hostname並不相同,基於密鑰對主機名符與密鑰過期兩點,造成了Apache無法啟動的故障。

解決方法以下幾種:

1. (推薦最好用)/etc/httpd/conf.d/ssl.conf裏將SSLEngine on改完SSLEngine off,重啟服務

2. 在/etc/httpd/conf.d/ssl.conf配置文件中,指定其他密鑰對兒的路徑

3. 可以把創建的密鑰對兒刪除或更名,後重啟Apache恢復正常,問題解決,回頭再去查看/etc/httpd/conf.d/ssl.conf

配置文件的時候,已經自動變成了/etc/httpd/conf.d/ssl.conf.bak

suexec學習資料:

http://blog.csdn.net/hulihong/article/details/5416056

httpd:RSA certificate configured for SERVER does NOT include an ID which matches the server name