Loving Coding & Visual Design
使用SSL
CloudFlare的免费SSL不应该浪费:
openssl genrsa -des3 -out zhaiduo.com.key 1024
openssl req -new -key zhaiduo.com.key -out zhaiduo.com.csr
openssl rsa -in zhaiduo.com.key -out zhaiduo.com.rsa
openssl x509 -req -days 3650 -in zhaiduo.com.csr -signkey zhaiduo.com.rsa -out zhaiduo.com.crt
修改nginx.conf
server {
listen 443;
server_name www.zhaiduo.com zhaiduo.com;
ssl on;
ssl_certificate ./cert/zhaiduo.com.crt;
ssl_certificate_key ./cert/zhaiduo.com.rsa;
access_log /zhaiduo.com/logs/access_ssl.log;
error_log /zhaiduo.com/logs/error_ssl.log;
...
}
openssl genrsa -des3 -out zhaiduo.com.key 1024
openssl req -new -key zhaiduo.com.key -out zhaiduo.com.csr
openssl rsa -in zhaiduo.com.key -out zhaiduo.com.rsa
openssl x509 -req -days 3650 -in zhaiduo.com.csr -signkey zhaiduo.com.rsa -out zhaiduo.com.crt
修改nginx.conf
server {
listen 443;
server_name www.zhaiduo.com zhaiduo.com;
ssl on;
ssl_certificate ./cert/zhaiduo.com.crt;
ssl_certificate_key ./cert/zhaiduo.com.rsa;
access_log /zhaiduo.com/logs/access_ssl.log;
error_log /zhaiduo.com/logs/error_ssl.log;
...
}
最 近 文 章
- CSS样例:英文首字母特大写 - Fri, 25 Aug 2006 05:06:15 +0000
- 微软说:任何人都可以为XBOX开发游戏 - Wed, 23 Aug 2006 05:35:01 +0000
- 来自kiko.com的互联网创业经验 - Tue, 22 Aug 2006 05:17:16 +0000
- Google工具栏的安全浏览功能 - Thu, 17 Aug 2006 08:57:48 +0000
- mac 终端常见问题 - Mon, 30 Nov -0001 00:00:00 +0000
- Login SSH with Rsa Key - Mon, 30 Nov -0001 00:00:00 +0000
- 重新学习Linux - Mon, 30 Nov -0001 00:00:00 +0000
- Linux基本管道命令 - Mon, 30 Nov -0001 00:00:00 +0000
- Reading - Mon, 30 Nov -0001 00:00:00 +0000
- 关于数据统计 - Mon, 30 Nov -0001 00:00:00 +0000