Apache2 SSL 認證申請法 (Godaddy.com)
Saturday, June 28th, 20081. Generate key file
openssl genrsa -des3 -out www.yourdomain.com.key 1024
輸入密碼後,等會可以移除
移除密碼,以免每次reload都要輸入password: openssl rsa -in www.yourdomain.com.key -out www.yourdomain.com.key
2. Generate csr file
1. openssl req -new -key www.yourdomain.com.key -out ww.yourdomain.com.csr
2. Enter pass phrase for www.yourdomain.com.key: # 輸入密碼
Country Name (2 letter code) [AU]: TW
State or Province Name (full name) [Some-State]:
Locality Name (eg, city) []:
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, YOUR name) []: [最重要的地方,自己的網域]
whatever you are using this ssl certificate for
Email Address []:
# these are optional
A challenge password []: # You can leave this blank. If you do not then make sure you write it down
An optional company name []:
3. Submit csr to issuing company
/// 這個視公司而定, godaddy 最便宜 15us
4. Installing your certificate
# start any settings you need
# …
# stop any settings you need
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/www.yourdomain.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/www.yourdomain.com.key
SSLCertificateChainFile /etc/apache2/ssl/gd_intermediate_bundle.crt
5. Check configuration and restart apache
/etc/init.d/apache2 restart
完成!!
