ssl自签证书简易命令
openssl genrasa -out test.key 2048 # 创建密钥
openssl req -new -key test.key -out test.csr -subj "CN=127.0.0.1" # 创建csr文件
openssl x509 -req -days 365 -sha1 -signkey test.key -in test.csr -out test.crt # 生成证书
openssl rsa -in test.key -pubout -out testpub.key # 从密钥中提取公钥
openssl x509 -noout -text -in test.crt # 查看证书信息

浙公网安备 33010602011771号