歡迎您光臨本站 註冊首頁

fedora13 apache ssl證書問題請教

←手機掃碼閱讀     火星人 @ 2014-03-04 , reply:0

fedora13 apache ssl證書問題請教

您好 能請教您一個問題麽 我在生成ssl證書的時候執行第三條語句的時候誤把Common Name寫為mail.demosoftware.cn 本來應該寫成repos.demosoftware.com,後來我重新在生成一次訪問網址的時候
查看證書都是mail.demosoftware.cn 。請問您知道怎麼改麽?

第一條:openssl genrsa -des3 -out repos.demosoftware.com.key.enc 1024
第二條:openssl rsa -in repos.demosoftware.com.key.enc -out repos.demosoftware.com.key
第三條:openssl req -new -key repos.demosoftware.com.key -out repos.demosoftware.com.csr
第四條:openssl x509 -req -days 365 -in repos.demosoftware.com.csr -signkey repos.demosoftware.com.key -out repos.demosoftware.com.crt

第三條詳細步驟:
# openssl req -new -key repos.demosoftware.com.key -out repos.demosoftware.com.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) :CN
State or Province Name (full name) []:BJ
Locality Name (eg, city) :BJ
Organization Name (eg, company) :demosoftware
Organizational Unit Name (eg, section) []:demosoftware
Common Name (eg, your name or your server's hostname) []:mail.demosoftware.cn
Email Address []:ganlin_liu@demosoftware.com
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:demo
An optional company name []:demosoftware
《解決方案》

樓主重新生成一次還不行?
《解決方案》

我全部重新生成了一個證書還是 顯示mail.demosoftware.cn 因為我伺服器fedora13的hostname 是mail.demosoftware.cn 不知道有影響沒,還是apache哪裡緩存要清空下麽
《解決方案》

:em16::em16:
《解決方案》

重新生成下就可以了 原來要有一定的時間。自己頂下

[火星人 ] fedora13 apache ssl證書問題請教已經有516次圍觀

http://coctec.com/docs/service/show-post-16270.html