如何创建受信任的自签名SSL证书

loc*_*ock 15 ssl https

我在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.
Run Code Online (Sandbox Code Playgroud)

如何解决这个错误?

Ale*_* K. 20

它不是一个错误警告,您生成的证书不受浏览器信任.

要在您控制的计算机上执行操作,可以将证书添加到受信任的根CA存储中(示例).

如果此计算机在Internet上/由您无法控制的计算机访问,则除非您从受信任的颁发CA购买证书,否则无法更改此行为.