Answers for "Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel"

1

invoke-webrequest ssl

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-WebRequest -Uri https://apod.nasa.gov/apod/
Posted by: Guest on September-29-2020
0

The request was aborted: Could not create SSL/TLS secure channel.

private void Somewhere() {
    ServicePointManager.ServerCertificateValidationCallback += new RemoteCertificateValidationCallback(AlwaysGoodCertificate);
}

private static bool AlwaysGoodCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors) {
   return true;
}
Posted by: Guest on February-01-2021

Code answers related to "Invoke-WebRequest : The request was aborted: Could not create SSL/TLS secure channel"

Browse Popular Code Answers by Language