应该是对方的https证书已过期,但是还是要用https访问。.netcore下如何解决呢?
framework下的帖子:https://www.cnblogs.com/dudu/p/3537653.html
var httpclientHandler = new HttpClientHandler();
httpclientHandler.ServerCertificateCustomValidationCallback = (message, cert, chain, error) => true;