证书错误 [英] Certificate Errors

查看:106
本文介绍了证书错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用HTTPS协议探索WCF的传输安全性.我已经使用makecert命令创建了一个证书,并将其从本地计算机的Personal导入到当前用户的Personal和Trusted人员中.然后,我将IIS(7.5)配置为接受https绑定,并附加了我创建的证书.
当我尝试从浏览器浏览到.svc文件时,出现以下错误-

该网站提供的安全证书不是由受信任的证书颁发机构颁发的.
本网站出示的安全证书是针对其他网站的地址颁发的.

为什么会出现此错误?这是因为makecert无法产生实时生产证书吗?有什么办法可以解决这个问题?

如果这种情况持续存在,我应该如何使用https测试WCF安全性并查看其实时工作方式?有人可以帮忙吗?

I am trying to explore Transport security with WCF using HTTPS protocol. I have created a certificate using makecert command and imported it in the Personal and Trusted people of Current User from Personal of Local Machine. I then configured my IIS (7.5) to accept https binding and attached the certicifate that I created.
When I try to browse to the .svc file from my browser, it gives the following error -

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

Why am I getting this error? is this because makecert does not produce real time production certificate? Is there any way to get around this?

If this persists, how am I supposed to test WCF security with https and see how it works real time? Can anyone help?

推荐答案

您是否已将自签名证书安装到根权限级别?它需要能够验证您的证书链,直到根级别

http://msdn.microsoft.com/en-us/library/ms733813.aspx [ ^ ]

您还可以为该站点添加证书例外,请参见此处

http://wind.caspercollege.edu/~doit/how_to/webaccess_ie7.html [ ^ ]


我刚刚写了一个提示/技巧可以帮助您

使用IE安装根证书颁发机构 [ ^ ]
Have you installed the self signed cerificate to root authority level? It needs to be able to validate your certificate chain up to root level

http://msdn.microsoft.com/en-us/library/ms733813.aspx[^]

You can also add a certificate exception for the site, see here

http://wind.caspercollege.edu/~doit/how_to/webaccess_ie7.html[^]


I''ve just written a tip / trick around this that may help you

Using IE to Install a Root Certificate Authority [^]


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

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