WCF 中的自签名证书问题 - 必须具有私钥 [英] Issue with Self Signed Cert in WCF - Must have Private Key

查看:44
本文介绍了WCF 中的自签名证书问题 - 必须具有私钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个托管在 Windows Vista SP1 上的 IIS7 中的 WCF 服务.我收到以下错误:

I am creating a WCF service hosted within IIS7 on Windows Vista SP1. I am getting the following error:

证书CN=SignedByLocalHost"必须具有能够进行密钥交换的私钥.该进程必须具有私钥的访问权限.

The certificate 'CN=SignedByLocalHost' must have a private key that is capable of key exchange. The process must have access rights for the private key.

看起来我需要对过去使用已在 Vista 中弃用的 winhttpcertcfg 完成的证书进行主机进程评估.我发现的文章表明使用证书控制台,但我缺少一些东西,因为我看不到任何编辑证书的能力.

It looks like I would need to give the host process assess to the certificate which was done in the past with winhttpcertcfg which has been deprecated for Vista. The article I found indicates to use the certificate console, but I am missing somethign because I don't see any capability to edit my cert.

任何帮助都会很棒!

谢谢

推荐答案

可以使用IIS 7.0/7.5刚开始->运行->inetmgr选择服务器在安全"面板下,转到服务器证书"在左侧窗格中单击 - 创建自签名证书"并完成该过程crtfiticate 将安装在 LocalMachine StoreLocation 的 Personal 商店名称下.现在在您的 WCF 服务中使用此证书,您将不会遇到此错误

You can use IIS 7.0/7.5 Just Start->Run ->inetmgr Select the server Under "Security" panel, go to "Server Certificates" In the left pane click - "Create Self Signed Certificate" and complete the process The crtfiticate will get installed in LocalMachine StoreLocation under Personal storename. Now use this certificate in your WCF service and you will not face this error

这篇关于WCF 中的自签名证书问题 - 必须具有私钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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