本地安装自行生成 ssl 证书

#openssl genrsa -des3 -out server.key 2048
输入四位数的密码:ID9@

#openssl rsa -in server.key -out server.key   
这里需要输入刚四位密码确认

#openssl req -new -x509 -key server.key -out server-ca.crt -days 3650
Country Name (2 letter code) [XX]:xg
State or Province Name (full name) []:xue peng cheng
Locality Name (eg, city) [Default City]:zheng
Organization Name (eg, company) [Default Company Ltd]:d-1111
Organizational Unit Name (eg, section) []:P-ddd
Common Name (eg, your name or your server's hostname) []:www.linuxtest.test
Email Address []:[email protected]

#openssl req -new -key server.key -out server.csr  
#openssl x509 -req -days 3650 -in server.csr -CA server-ca.crt -CAkey server.key -CAcreateserial -out server.crt


ssl 生成
https://blog.csdn.net/zouqingfang/article/details/51484472
https://blog.csdn.net/fyang2007/article/details/6180361

Nginx ssl 安装
https://www.zybuluo.com/octopus/note/1125710#%E7%94%9F%E6%88%90%E5%AF%86%E9%92%A5%E4%B8%8Eca%E7%AD%BE%E5%90%8D%E8%AF%81%E4%B9%A6


你可能感兴趣的:(其它)