如何从ASP.NET MVC 4 Web API请求启用ssl的服务器中的数据 [英] How to request data from ssl enabled server from ASP.NET MVC 4 web API
问题描述
我在iis server中托管了asp.net web api应用程序.Web api应用程序使用httpwebrequest类从位于另一台机器的远程服务器请求数据这是ssl启用。我需要使用来自我的应用程序的httpweb请求从该服务器访问数据。
我不知道如何实现握手,
haw to request服务器证书,
如何验证服务器证书,
并从我的asp.net web api应用程序启动与服务器的安全通信连接。
我搜索了很多并没有找到完整的例子。
请有人帮助我。
谢谢
Hi,
I have asp.net web api application hosted in iis server.Web api application uses httpwebrequest class to request data form remote server located in another machine which is ssl enabled. I need to access data from that server using httpweb request from my application.
I dont know how to implement handshake,
haw to request the server certificate,
how to validate the server certificate,
and start a secure commnunication connection with server from my asp.net web api app.
I searched alot and didnt find completed example.
please some one help me on that.
thanks
推荐答案
这可能对你有帮助。
处理证书
这篇关于如何从ASP.NET MVC 4 Web API请求启用ssl的服务器中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!