Nginx配置HTTPS
来源:互联网 发布:阿里云ftp端口号 编辑:程序博客网 时间:2024/06/14 05:18
生成没有密码的文件
要使用https,那么需要四个步骤
第一步生成key
openssl genrsa -des3 -out ilovewqf.xicp.net.key
这个命令不写强度,默认强度就是1024
生成没有密码的key文件,但是还是要输入密码
openssl rsa -in ilovewqf.xicp.net.key -out ilovewqf.xicp.net.nopass.key
第二步 生成CA的crt文件
openssl req -new -x509 -key ilovewqf.xicp.net.key -out ca.crt -days 3650
第三步 生成CSR
req -new -key ilovewqf.xicp.net.key -out server.csr
第四步生成crt
openssl x509 -req -days 3650 -in server.csr -CA ca.crt -CAkey ilovewqf.xicp.net.key -CAcreateserial -out server.crt
这个命令特别长
第五步 证书合并
cat ilovewqf.xicp.net.key server.crt > server.pem
https://localhost
在配置nginx的时候,可以使用ilovewqf.xicp.net.nopass.key这样启动nginx时不需要手动输入密码。
阅读全文
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
- 设计模式——享元模式
- 制作指定比例尺的专题地图
- jq中trigger和triggerHandler用法
- vue的坑
- redis-cli启动时可以带的参数
- Nginx配置HTTPS
- windows下安装xgboost的python库
- Nginx学习笔记
- STM32库文件结构及CMSIS介绍
- 代码操作数据库性能优化总结
- ThinkPhp5 模型查询结果转化成数组
- VUE2 前端实现 静态二级省市联动选择select
- mybatise+oracle添加数据时如果数据存在就更新,如果不存在就插入
- 537. Complex Number Multiplication