问题描述
我正在尝试使用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?
推荐答案
这篇关于证书错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!