本地主机的SSL安全证书错误

问题描述:



我已按照以下URL中给出的步骤创建了自签名证书,并将其附加到localhost:80.

http: //weblogs.asp.net/scottgu/archive/2007/04/06/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates.aspx [
我该如何清除.

问候,

Praveen

[edit]链接已转换为正确的链接-OriginalGriff [/edit]

Hi,

I have followed the steps given in the following URL to create Self Signed Certificate and attach it to localhost:80.

http://weblogs.asp.net/scottgu/archive/2007/04/06/tip-trick-enabling-ssl-on-iis7-using-self-signed-certificates.aspx[^]

I am able to finish until the last screen. I could not clear the Certificate Error in the Internet Address Bar eventhough I installed the certificate under Trusted Root Certification Authorities.

How can i clear it.

Regards,

Praveen

[edit]Link converted to a proper link - OriginalGriff[/edit]

您很可能需要为这两个协议添加显式基址,以便WCF知道您要绑定到两者.尝试将其添加到您的< service>定义:

You most likely need to add explicit base addresses for the both protocols so WCF knows you want to bind to both. Try adding this to your <service> definition:

<host>
    <baseAddresses>
        <add baseAddress="http://your-hostname-here/" />
        <add baseAddress="https://your-hostname-here/" />
    </baseAddresses>
</host>




另外,请确保您正在通过计算机的WINS/DNS名称访问该服务,或者需要在IIS下的网站实例中添加显式主机头.




Also, make sure you''re accessing the service via the machine''s WINS/DNS name or you need to add an explicit host header to the web site instance under IIS.