HTTPS POST 请求,出现SSL/TLS 连接被关闭。 在请求钱增加这个委托。
ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
private bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
return true;
}