【问题标题】:How to create a trusted self signed SSL certificate如何创建受信任的自签名 SSL 证书
【发布时间】:2011-09-28 16:26:27
【问题描述】:

我在 IIS7.5 中创建了一个自签名证书,但出现以下错误

    There is a problem with this website's security certificate. 


 The security certificate presented by this website was issued for a different website's address.

Security certificate problems may indicate an attempt to fool you or intercept any data you send to the server.  
  We recommend that you close this webpage and do not continue to this website.  
  Click here to close this webpage.  
  Continue to this website (not recommended).  
     More information 


If you arrived at this page by clicking a link, check the website address in the address bar to be sure that it is the address you were expecting. 
When going to a website with an address such as https://example.com, try adding the 'www' to the address, https://www.example.com. 
If you choose to ignore this error and continue, do not enter private information into the website. 

For more information, see "Certificate Errors" in Internet Explorer Help.

如何解决这个错误?

【问题讨论】:

  • 浏览器仅信任某些 CA(证书颁发机构)颁发的证书。您可以生成一个供自己使用的证书,但它会给您一个警告,说“此证书不受信任”。您可以从 GlobeSSL 购买便宜的 SSL 证书。

标签: ssl https


【解决方案1】:

警告不是错误,您生成的证书不受浏览器信任。

要在您控制的机器上抑制这种情况,您可以将证书添加到受信任的根 CA 存储 (Example)。

如果这台机器在互联网上/由不受您控制的机器访问,则除非您从受信任的颁发 CA 购买证书,否则您无法更改此行为。

【讨论】:

  • 如果我在我的服务器中执行此过程,我的客户端是否可以在没有警告的情况下访问该 https?
  • 不,它必须在每台客户端机器上完成,我永远不会要求客户这样做。您以 的价格获得一个 rapidssl 证书
  • 我创建了一个代理服务器应用程序。对于连接到此代理应用程序的所有客户端计算机,我需要为所有网站提供 SSL 证书。如何解决这个问题?
  • @AdityaBokade 我不知道,最好问一个新问题
  • 您链接到的示例显示了如何解决类似但不同的问题。这里的错误消息是证书是为不同的地址颁发的,而不是不可信的来源,正如@spender 在他们的回答中提到的那样。
【解决方案2】:

只有可以信任自签名证书。如果您想要一个普遍信任的,您需要从发行机构购买一个。但是,似乎此特定证书是为与正在访问的域不同的域颁发的。解决这个问题,您可能会收到另一个关于信任的警告。

【讨论】:

    【解决方案3】:

    如果您有证书文件,您也可以手动执行此操作。使用 Windows 管理控制台工具 - certmgr.msc。除其他功能外,它还允许您手动导入自签名证书。

    http://windows.microsoft.com/en-us/windows-vista/view-or-manage-your-certificates

    【讨论】:

      【解决方案4】:

      右击“Internet Explorer”图标, 然后选择“以管理员身份运行” 或者只是“Internet Explorer”中的应用程序。

      访问该网站,然后选择“继续访问此网站(不推荐)”选项。

      点击地址栏中显示“证书错误”的位置,然后选择“查看证书”。

      选择“安装证书...”。

      选择“下一步”。 选择“将所有证书放入以下存储”选项。 选择“浏览...”。

      选择“受信任的根证书颁发机构”,然后选择“确定”。

      当出现安全警告提示时选择“是”。

      在“导入成功”消息上选择“确定” 在“证书”框中选择“确定”。

      重新运行应用程序。

      【讨论】:

        猜你喜欢
        • 2011-01-13
        • 1970-01-01
        • 2015-11-02
        • 2014-02-19
        • 1970-01-01
        • 1970-01-01
        • 2013-02-08
        • 2015-08-05
        • 2018-04-16
        相关资源
        最近更新 更多