如何从.Net的端点下载证书?(How do I download a certificate from an endpoint with .Net?)
我们的Web服务上有公共证书,但我需要从客户端代码中下载证书。 我查看了WebClient和HttpClient,但是我没有看到下载的证书在响应中的位置。
有人可以在正确的位置指导我吗?
We have a public certificate on our web service but I need to download the certificate from within my client code. I have looked at WebClient and HttpClient but I don't see where the downloaded certificate would be at in the response.
Can someone guide me in the correct location?
最满意答案
看一下ServicePointManager.FindServicePoint(Uri) http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager ServicePointManager.FindServicePoint(Uri) .aspx
Have a look at ServicePointManager.FindServicePoint(Uri) http://msdn.microsoft.com/en-us/library/system.net.servicepointmanager(v=vs.110).aspx
更多推荐
发布评论