本地启动https
使用 openssl 工具
生成自签名证书,简化流程
1 | # openssl.cnf |
生成自签名
1 | openssl req -x509 -newkey rsa:2048 -keyout private.key -out certificate.crt -days 365 -config openssl.cnf -nodes |
nginx 里面配置
1 | # nginx.conf |
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.