asp.net core IHttpClientFactroy 进行SSL(https)请求时注入ConfigurePrimaryHttpMessageHandler解决https请求错误
builder.Services.AddHttpClient("https").ConfigurePrimaryHttpMessageHandler(c =>
{
var hander = new HttpClientHandler();
hander.ServerCertificateCustomValidationCallback = (message, cert, chain, error) => true;
return hander;
});