更新时间:2021-10-24 05:50:23
//Use this, it worked for me.
HttpClient client;
public class datastore {
var httpClientHandler = new HttpClientHandler();
httpClientHandler.ServerCertificateCustomValidationCallback =
(message, cert, chain, errors) => { return true; };
client = new HttpClient(httpClientHandler);
}
//... use the client to make request. it will bypass
//the ssl certificates verification.