1. 程式人生 > >本地安裝自行生成 ssl 證書

本地安裝自行生成 ssl 證書

#openssl genrsa -des3 -out server.key 2048
輸入四位數的密碼:[email protected]
#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