Nginx配置SSL证书

openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout /etc/nginx/ssl/nginx.key -out /etc/nginx/ssl/nginx.crt

使用上面脚本生成证书

 

参考:

https://segmentfault.com/a/1190000004976222

https://aotu.io/notes/2016/08/16/nginx-https/index.html

https://www.cnblogs.com/zeussbook/p/11231820.html

 

 

Nginx配置SSL证书_第1张图片

你可能感兴趣的:(SSL)