标签:三方 asa 网站 自动 code server 导致 get 应该
protected void Application_Start()
{
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.ServerCertificateValidationCallback += MyRemoteCertificateValidationCallback;
}
public static bool MyRemoteCertificateValidationCallback(
Object sender,
X509Certificate certificate,
X509Chain chain,
SslPolicyErrors sslPolicyErrors)
{
return true;
}
private void GetSSOLoginInfo(string cashost, string ticket, string service, ref string netid)
{
ServicePointManager.ServerCertificateValidationCallback = ValidateServerCertificate;
}
private bool ValidateServerCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
{
return false;
}
感谢Abp架构设计群的大侠们,告诉了排查思路,还在进一步的跟踪中
标签:三方 asa 网站 自动 code server 导致 get 应该
原文地址:https://www.cnblogs.com/fengshi1988/p/9729573.html