WCF服务找不到X.509证书 [英] X.509 certificate cannot be found by WCF service

查看:90
本文介绍了WCF服务找不到X.509证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IIS中托管了WCF服务.

I have a WCF service hosted in IIS.

使用certmgr.msc我可以在Personal -> Certificates中看到我的X.509证书,但仍然出现此错误:

Using certmgr.msc I can see my X.509 certificate in Personal -> Certificates but still I get this error:

使用以下搜索条件找不到X.509证书:StoreName'My',StoreLocation'CurrentUser',FindType'FindByThumbprint',FindValue'b0 5f 3f ...'.

Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'CurrentUser', FindType 'FindByThumbprint', FindValue 'b0 5f 3f ...'.

我更改了存储位置,找到类型...但是仍然出现相同的错误.我猜IIS由于缺少权限而无法使用证书.

I changed storelocation, find type... but still the same error appears. I guess IIS cannot use the certificate because of lack of permission.

我该如何解决?

推荐答案

右键单击证书,选择管理私钥",向运行IIS应用程序池的用户授予权限.

Right click on the cert, select Manage Private Keys, grant rights to the user under which the IIS app pool is running.

这篇关于WCF服务找不到X.509证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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