请教C#关于SSL的问题
HttpWebRequest.GetRequestStream() --正常
HttpWebRequest.GetResponse() --报 请求被中止: 未能创建 SSL/TLS 安全通道.
------------------------------------------------
已使用以下代码
public bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{ // 总是接受
return true;
}
ServicePointManager.ServerCertificateValidationCallback = new System.Net.Security.RemoteCertificateValidationCallback(CheckValidationResult);