« | August 2025 | » | 日 | 一 | 二 | 三 | 四 | 五 | 六 | | | | | | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | | | | | | | |
| 公告 |
戒除浮躁,读好书,交益友 |
Blog信息 |
blog名称:邢红瑞的blog 日志总数:523 评论数量:1142 留言数量:0 访问次数:9688451 建立时间:2004年12月20日 |

| |
[linux]nginx配置ssl 原创空间, 软件技术, 电脑与网络
邢红瑞 发表于 2012/4/18 17:29:50 |
先生成网关证书 ,仿照CA模式1 生成私钥,需要密码的openssl genrsa -des3 -out server.key 10242 生成证书请求openssl req -new -key server.key -out server.csr3 生成证书cp server.key server.key.orgopenssl rsa -in server.key.org -out server.keyopenssl x509 -req -day 365 -in server.csr -signkey server.key -out server.crt
配置文件
# HTTPS serverserver {listen 444;server_name localhost;
ssl on;ssl_certificate server.crt;ssl_certificate_key server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;ssl_ciphers HIGH:!aNULL:!MD5;ssl_prefer_server_ciphers on;
location / {root html;index index.html index.htm;}
|
|
» 1 »
|