简体   繁体   English

WCF SSL客户端证书错误

[英]WCF SSL Client certificate error

In our current project we're using a Tibco/Java webservice from our .NET 4.0/MVC/WCF client. 在我们当前的项目中,我们使用来自.NET 4.0 / MVC / WCF客户端的Tibco / Java Web服务。 We're using two way authentication. 我们正在使用两种方式的身份验证。 Our certificate is sent in the correct way, and the Tibco server sends back their certificate. 我们的证书以正确的方式发送,并且Tibco服务器发送回他们的证书。

Now this al works in Windows 2008 R2, using Visual Studio 2010/IIsExpress to run the web application. 现在,这一切都可以在Windows 2008 R2中使用Visual Studio 2010 / IIsExpress来运行Web应用程序。 But when using the exact same code on Windows 8/Visual Studio 2012 we're getting a lot of : 但是在Windows 8 / Visual Studio 2012上使用完全相同的代码时,我们会得到很多:

Could not establish trust relationship for the SSL/TLS secure channel with authority 无法使用授权建立SSL / TLS安全通道的信任关系

It used to work fine in Windows 2012 too, but without touching our integration (WCF) code this at first started to happen to my colleague and then on my machine too. 它过去在Windows 2012中也可以正常工作,但是在没有接触我们的集成(WCF)代码的情况下,这种情况首先在我的同事中发生,然后在我的计算机上也发生了。

The certificates are installed in the same store as in the Windows 2008 R2 machine, and we also see that the certificate is being used. 证书与Windows 2008 R2计算机安装在同一存储区中,并且我们还看到正在使用证书。

To be able to move forward we'll resort to our plan B which is back to using Visual Studio 2010/Windows 2008 R2. 为了能够继续前进,我们将使用计划B,该计划又回到使用Visual Studio 2010 / Windows 2008 R2。 So I was hoping someone else experienced the same problem and solved it. 所以我希望其他人也遇到同样的问题并解决。 So the question is, what could be wrong? 所以问题是,可能出什么问题了?

Could be the aspnet/networkservice/whatever user you're using for you AppPool doesn't have permission to read the certificate store? 您使用的aspnet / networkservice /任何用户是否可能是AppPool没有读取证书存储的权限?

Check this article 检查这篇文章

Particularly the "Install the client certificate and grant access for the user account" section. 特别是“安装客户端证书并授予用户帐户访问权限”部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 客户端上的WCF服务-SSL证书 - WCF Service on Client Side - SSL Certificate wcf服务服务器和客户端证书与SSl证书不同时的安全异常 - Security exception when wcf service server and client certificate is different than SSl certificate WCF客户端证书身份验证,服务“ SslRequireCert”的SSL设置与IIS“ Ssl,SslNegotiateCert”的SSL设置不匹配 - WCF Client Certificate Authentication, The SSL settings for the service 'SslRequireCert' does not match those of the IIS 'Ssl, SslNegotiateCert' WCF和客户端证书身份验证 - WCF and client certificate authentication 使用WCF和SSL的证书发行 - Certificate issue using WCF with SSL WCF客户端不忽略证书错误(但可以运行Fiddler) - WCF client not ignoring certificate error (but works running Fiddler) 在Windows Phone 8 Silverlight中处理客户端SSL证书错误 - Dealing with Client SSL certificate error in windows phone 8 silverlight WCF-调用WCF服务的WCF客户端出现“未为目标提供服务证书”错误 - WCF - 'The service certificate is not provided for target' error for WCF client calling a WCF service 从.net客户端获取有关WCF ssl证书的到期日期/详细信息 - Obtain expiration date / details about a WCF ssl certificate from .net client 使用CA证书颁发机构ssl证书的WCF客户端4.5 C#。 需要帮助,放弃 - WCF Client 4.5 C# using CA certificate authority ssl cert. Need assistance, given up
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM