Openssl自签https证书

来自三线的随记

使用 Openssl自签https证书

SSL is TLS

SSL is the old name. It is called TLS these days.

SSL Certificate Verification

https://curl.se/docs/sslcerts.html

随记

openssl genrsa -des3 -out server.key 2048
openssl req -new -key server.key -out server.csr
openssl rsa -in server.key.org -out server.key
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

其中

openssl rsa -in server.key.org -out server.key

为去除私钥密码


* 命令作用拆分(doing)

生成 基于3des 算法长度为2048位的 RSA格式私钥

Generation of RSA Private Key. Superceded by genpkey.

openssl genrsa -des3 -out server.key 2048

其中会提示需要为私钥设置密码