gpt4 book ai didi

powershell - 如何通过嵌入网页或powershell运行Gist来解决ssl证书错误?

转载 作者:太空宇宙 更新时间:2023-11-03 14:39:21 26 4
gpt4 key购买 nike

我正在使用 IISExpress 在 Visual Studio 2013 中开发网站,并已启用 HTTPS 通过 Visual Studio 创建证书。这在 Chrome 中运行时有一个已知问题,如此处所述 VS 2017: All new/existing HTTPS web sites give a certificate error in Chrome .

那里的解决方案使用了这里的要点 camieleggermont/UpdateIISExpressCertificate.ps1 生成新证书并替换旧证书。

我试过运行它但没有成功。

我尝试将代码嵌入到我的页面中。我把这个代码 <script src="https://gist.github.com/camieleggermont/5b2971a96e80a658863106b21c479988.js"></script>html head标记样式链接和 meta标签。

运行时我在页面背景中看到了要点代码,但我仍然收到证书错误。

我试着把 script页面上其他地方的标记具有相同的结果。

我应该怎么做才能嵌入它并让它运行?或者我如何将它作为 powershell 命令运行?

还有其他方法可以解决 Chrome 中的证书问题吗?

谢谢。

最佳答案

使用 Jexus Manager(免费和开源)生成自签名证书会容易得多,

  • SHA256。
  • CN 和 SAN 设置为您想要的值。

因此,它符合 Chrome 的要求。您还可以轻松地将证书添加到其中的受信任根,

https://blog.lextudio.com/why-chrome-says-iis-express-https-is-not-secure-and-how-to-resolve-that-d906a183f0

关于powershell - 如何通过嵌入网页或powershell运行Gist来解决ssl证书错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44540063/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com