如何从.Net的端点下载证书?(How do I download a certificate from an endpoint with .Net?)

编程入门 行业动态 更新时间:2024-10-28 18:24:40
如何从.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

更多推荐

本文发布于:2023-07-22 06:36:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1217754.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:证书   Net   download   endpoint   certificate

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!