Apache + SSL

1 篇文章 / 0 new
author
Apache + SSL
1. 憑證建立
進 命令視窗移至 apache 目錄下
bin\openssl genrsa -des3 -out server.key 2048
輸入私鑰密碼
bin\openssl req -new -key server.key -out server.csr -config conf\openssl.cnf
Country Name (2 letter code) [AU]:TW
State or Province Name (full name) [Some-State]:Taiwan
Locality Name (eg, city):(城市)
Organization Name (eg, company) [Internet Widgits Pty Ltd]:(組織,例如公司)
Organizational Unit Name (eg, section): (單位,例如公司部門等)
Common Name (eg, YOUR name):localhost (公開名稱或主機名稱)
Email Address :aaa@bb.cc (信箱)

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:(Enter即可)
An optional company name []:(Enter即可)
bin\openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
bin\openssl rsa -in server.key -out server.key
2. 複製 server.crt, server.key 到 apache\conf 目錄下
3. 編輯 conf/httpd.conf 開啟
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
4. 檢查 conf/extra/httpd-ssl.conf, 確認內設的相關路徑, 目錄是否正確
5. 重新啟動 apache 就 OK.

不過因為所有簽證並非經由第三方, 所以雖然可以使用但瀏覽器會出現警示訊息, CA憑證申請

from
http://blog.changyy.org/2009/05/windows-apache-with-https-ssl-windows-xp...
http://blog.roodo.com/myroodo/archives/4219557.html
http://blog.twpaddy.net/2007/06/ca-certificate.html
Free Web Hosting