nginx https 配置
来源:互联网 发布:液晶电视编程器那种好 编辑:程序博客网 时间:2024/06/05 16:22
可以通过以下步骤生成一个简单的证书:
首先,进入你想创建证书和私钥的目录,例如:
- $ cd /usr/local/nginx/conf
创建服务器私钥,命令会让你输入一个口令:
- $ openssl genrsa -des3 -out server.key 1024
创建签名请求的证书(CSR):
- $ openssl req -new -key server.key -out server.csr
在加载SSL支持的Nginx并使用上述私钥时除去必须的口令:
- $ cp server.key server.key.org
- $ openssl rsa -in server.key.org -out server.key
配置nginx
最后标记证书使用上述私钥和CSR:
- $ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
修改Nginx配置文件,让其包含新标记的证书和私钥:
- server {
- server_name YOUR_DOMAINNAME_HERE;
- listen 443;
- ssl on;
- ssl_certificate /usr/local/nginx/conf/server.crt;
- ssl_certificate_key /usr/local/nginx/conf/server.key;
- }
0 0
- Nginx(12):nginx配置https
- nginx 配置https server
- nginx 配置https
- Nginx 配置 https 加密
- Nginx配置https服务器
- Ubuntu nginx 配置https
- nginx https配置
- nginx配置https
- nginx 配置https
- nginx 配置HTTPS服务器
- Linux nginx配置https
- nginx 配置https 环境
- Nginx配置Https
- nginx配置https
- Nginx配置https访问
- nginx配置https服务
- nginx配置https方法
- nginx配置https
- user.go
- QQ分享之andriod开发
- 【jzoj4885】【隔壁】
- 关于输出缓冲ob_start()的作用
- 【NOIP模拟题】【表达式求值】2016.11.11第三题equal题解
- nginx https 配置
- 多线程 AfxBeginThread 与 CreateThread 的区别
- Objective-C Associated Objects 的实现原理-Category添加实例变量
- activiti介绍
- C语言中static关键字的思考
- 正则表达式
- django 静态文件的配置总结
- HBase学习笔记 --- DataModel逻辑图
- 为新项目加速导入