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

查看:253
本文介绍了在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.

看起来我需要给主机进程评估过去使用winhttpcertcfg执行的证书,该版本已被Vista弃用。我发现的文章表明使用证书控制台,但我失去了某个地方,因为我没有看到任何能力来编辑我的证书。

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 个人 storename。
现在在您的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天全站免登陆