如何使用客户端证书调用外部Web服务

如何使用客户端证书调用外部Web服务

问题描述:

亲爱的所有人,

我正在开发.net中的Web应用程序,该应用程序需要使用其X509证书为客户提供服务.我的Web应用程序需要从另一个使用x509身份验证的提供程序(*服务器)调用远程Web服务.

我已经使用存储在本地系统中的证书通过以下调用开发和测试了该页面:

GovernmentWebservice.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine,StoreName.My,X509FindType.FindBySubjectName,我的证书主题名称");

但这是一个问题,因为当客户端连接到我的网页时,我需要使用客户端发送的证书(Request.ClientCertificate.Certificate).我发现远程Web服务的调用仅适用于本地计算机中存储的证书.任何人都知道任何解决方法,因此我可以使用我的客户证书来调用其他Web服务????



谢谢,

Dear All,

I am developing a web application in .net that needs to serve clientes using their X509 certificates . My webapp needs to call remote webservices from another provider (government servers) that uses the x509 authentication.

I already developed and tested the page using a certficate stored in the local system using the call below:

GovernmentWebservice.ClientCredentials.ClientCertificate.SetCertificate(StoreLocation.LocalMachine, StoreName.My , X509FindType.FindBySubjectName,"MY CERTIFICATION SUBJECT NAME");

But this becomes a problem because I need to use the certificate sent by the client when he connected to my webpage (Request.ClientCertificate.Certificate). I found that the call of the remote webservice only works with certificates stored in my local machine. Anyone knows any workaround so I can use my clients certificate to call the other webservice????



Thanks,

看起来不可能.

http://*.com/questions/14650008/intercepting-and-forwarding-client-certificate-to-webservice

如果有人知道相反的内容,我们将非常高兴.

谢谢
Looks like its not possible.

http://*.com/questions/14650008/intercepting-and-forwarding-client-certificate-to-webservice

Would be glad if anyone knows anything in contrary.

Thanks,