1:首先生成CSR
可以通过此网站http://www.trustasia.com/services/CSR/
他会生成一个CSR 和一个private key (private.key)
2:将CSR发给对方获取Symantec Certificate(SSL.crt)
3:Download the Symantec Intermediate CA Bundle
下载Intermediate Root CA证书保存为Intermediate.crt
4:Concatenate the SSL and Intermediate CA Bundle Certificate
cat intermediate.crt >> SSL.crt
5:Edit the Nginx virtual hosts file(nginx.conf)
server {
listen 443;
ssl on;
ssl_certificate /root/ssl/SSL.crt;
ssl_certificate_key /root/ssl/private.key;
server_name your.domain.com;
access_log /var/log/nginx/nginx.vhost.access.log;
error_log /var/log/nginx/nginx.vhost.error.log;
location / {
root /home/www/public_html/your.domain.com/public/;
index index.html;
}
}
6:重启Nginx
/etc/init.d/nginx restart
7:然后就可以使用https访问你的网站老.