Last Updated: September 30, 2021
·
40.85K
· nishant

Ignore SSL Certificate Check in PowerShell

To simply ignore SSL certificate check while making HTTP Requests from PowerShell, add below line:

[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }

For more details check,
http://www.agarwalnishant.com/2014/07/ignore-ssl-certificate-check-in.html