Created
November 11, 2013 15:08
-
-
Save supercow/7414555 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$req = [System.Net.WebRequest]::Create('https://master:8140/production/certificate_status/certname_to_rm') | |
$req.Method = "DELETE" | |
$req.Accept = "pson" | |
$req.ContentLength = 0 | |
# ignore ssl checks | |
$ssl_check = [System.Net.ServicePointManager]::ServerCertificateValidationCallback | |
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true} | |
$req.GetResponse() | |
# stop ignoring ssl checks | |
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $ssl_check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment