实现本地nginx ip+ssl的访问
注意openssl和ssh-keygen的区别
生成私钥文件
openssl genrsa -des3 -out localhost.key 2048
去除口令,否则启动nginx时需要密码
openssl rsa -in localhost.key -out localhost.key
创建请求证书
openssl req -new -key localhost.key -out localhost.csr
生成证书 自签名证书
openssl x509 -req -days 36500 -in localhost.csr -signkey localhost.key -out localhost
标签:证书,openssl,OpenSSL,SSL,key,Linux,生成,localhost,out From: https://www.cnblogs.com/codedingzhen/p/17935457.html