本地主机的SSL安全证书错误 [英] SSL Security Certificate Error for localhost

查看:334
本文介绍了本地主机的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.


这篇关于本地主机的SSL安全证书错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆