https 证书 生成安装笔记

目录

Windows

[第一步:获取 OpenSSL for Windows](#第一步:获取 OpenSSL for Windows)

生成证书请求文件,

生成私钥

填写参数:

生成证书:


Windows

第一步:获取 OpenSSL for Windows

bash 复制代码
https://slproweb.com/download/Win64OpenSSL-3_6_0.exe

下载安装后, 添加到环境变量里面

x:\xxx\OpenSSL-Win64\bin

生成证书请求文件,

bash 复制代码
openssl req -new -key server.key -out server.csr

它会生成:

server.csr ← 证书请求文件

生成私钥

bash 复制代码
openssl genpkey -algorithm RSA -out server.key -pkeyopt rsa_keygen_bits:2048
填写参数:

Country Name (2 letter code) AU:CN

State or Province Name (full name) Some-State:beijing

Locality Name (eg, city) \[\]:beijing

Organization Name (eg, company) Internet Widgits Pty Ltd:qinghua

Organizational Unit Name (eg, section) \[\]:bei
Common Name (e.g. server FQDN or YOUR name) \[\]:https://localhost

Email Address \[\]:jacke121@126.com

Please enter the following 'extra' attributes

to be sent with your certificate request

A challenge password \[\]:

An optional company name \[\]:

生成证书:

bash 复制代码
openssl x509 -req -in server.csr -signkey server.key -out server.crt -days 365
相关推荐
RainCity1 天前
Java Swing 自定义组件库分享(十二)
java·笔记·后端
不做菜鸟的网工2 天前
BGP特性
网络协议
AlfredZhao2 天前
生产环境里,为什么不建议把普通端口直接暴露到公网?
linux·https·443·80
明月_清风4 天前
开发者网络概念全扫盲:一篇搞定
后端·网络协议
刘马想放假4 天前
Modbus 全栈技术解析:TCP、RTU、ASCII、RTU over TCP
数据结构·网络协议
王二端茶倒水5 天前
一套可落地的无线运营方案,不能只管 AP,还要管用户、计费和运维
网络协议
162723816085 天前
EtherCAT 分布式时钟(DC)原理与配置实战:把多轴真正"对齐到同一时刻"
网络协议
王二端茶倒水6 天前
宽带无线项目,怎么从一次性交付变成长期运营收入?
网络协议
Avan_菜菜7 天前
FRP 内网穿透完整实战:从 HTTP 映射到 HTTPS 自签代理
运维·nginx·https