faith丶

导航

2021年11月3日 #

配置nginx https访问(使用openssl生成https证书)

摘要: ### 1、创建https的ssl证书 1.1、创建秘钥 mkdir test && cd testopenssl genrsa -des3 -out server.key 2048注意:生成私钥,需要提供一个至少4位,最多1023位的密码。 1.2、生成CSR(证书签名请求) openssl re 阅读全文

posted @ 2021-11-03 18:32 faith丶 阅读(1051) 评论(0) 推荐(0) 编辑

访问前端项目时Http请求变成了HTTPS

摘要: 问题:访问http://192.168.56.140,在浏览器返回https内容 问题产生原因:(index.html文件中配置) <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 这个时候 阅读全文

posted @ 2021-11-03 16:52 faith丶 阅读(1037) 评论(0) 推荐(0) 编辑