The remote certificate is invalid according to the validation proc...

The remote certificate is invalid according to the validation proc...

2023年6月25日发(作者:)

最近在windows 2003 服务器上,微信支付和支付宝支付时候都出现The remote

certificate is invalid according to the validation procedure(远程证书根据验证过程无效),这个问题看了系统日志更新后,估计是由于系统更新了一个证书后,接下来导致这个问题,现在把解决方案描述如下:

把下面的代码拷贝到每次获取http的post、get或是read的方法之前

智果科技 专注微信商城开发,H5游戏开发

CertificateValidationCallback = delegate(object s, X509Certificate certificate,X509Chain chain, SslPolicyErrors sslPolicyErrors)

{

return true;

};

发布者:admin,转转请注明出处:http://www.yc00.com/web/1687678895a30889.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信