系统从.net framework 升级到dotnet core2.1 原先工作正常的httpclient,会报SSL connection could not be established error 错误 在.net framework中通过ServicePointManager,当证书出错时,可以跳过证书验证. ServicePointManager.ServerCertificateValidationCallback += (sender, cert, chain, sslPolicy…