标签:Requires use int ati its poi manage you 下载
The remote certificate is invalid according to the validation procedure 根据验证过程中远程证书无效
I‘m calling an ASP.NET web service from an ASP.NET web application. The two applications are on different servers. The web service requires SSL and presents the application with a self-signed certificate. Since this is an internal app, I want the client application to trust the web service and its self-signed cert. 我调用一个 ASP.net Web服务从一个ASP.NET Web应用, 这两个应用在不通的服务器上, Web Service请求了一个自签名的证书, 这事个内网app,我希望客户端应用信任web service的自签名证书。
There are lots of suggestions on how to do this in your code by coding a delegate method to accept all server certificates regardless of origin:
I don‘t want to do this, though, because this same code will be rolled out to production and it seems sloppy to me to allow all certificates to validate carte blanche.
ServicePointManager.ServerCertificateValidationCallback =
delegate(object sender, X509Certificate certificate, X509Chain chain,
SslPolicyErrors sslPolicyErrors) { return true; };
The remote certificate is invalid according to the validation procedure
标签:Requires use int ati its poi manage you 下载
原文地址:https://www.cnblogs.com/MysticBoy/p/10752210.html