生成本地证书供开发测试https服务

生成本地https证书供开发使用

生成key

bash 复制代码
openssl genrsa -out server.key 2048

生成证书

bash 复制代码
openssl req -new -sha256 -x509 -days 365 -key server.key -out server.crt

数字365表示证书有效期天数

然后按照步骤填写信息(测试环境下可随意填写或者为空也可以,域名建议填写)

相关推荐
guojb824几秒前
告别部署踩坑:用 Docker Compose 优雅搞定多前端站点、HTTPS 与 SSE 推送
nginx·docker·https
code_li15 小时前
HTTPS免费证书配置指南
网络协议·http·https
2501_9159214320 小时前
穿越HTTPS迷雾:Wireshark中的TLS抓包秘诀与文件合并方法
网络协议·ios·小程序·https·uni-app·wireshark·iphone
PinTrust SSL证书21 小时前
Sectigo(Comodo)企业型OV通配符SSL
网络·网络协议·网络安全·小程序·https·ssl
lclcooky1 天前
Nginx代理到https地址忽略证书验证配置
运维·nginx·https
acaad1 天前
java访问https连接报错 unable to find valid certification path to requested target
网络协议·http·https
CXH7282 天前
nginx——https
运维·nginx·https
悟道子HD2 天前
计算机网络端口记忆指南
计算机网络·http·https·ssh·ftp·端口号·smtp
tang&2 天前
HTTP与HTTPS协议详解:从基础到加密原理
计算机网络·http·https
2501_915909062 天前
苹果App Store上架全流程指南从注册到上线
android·ios·小程序·https·uni-app·iphone·webview