Skip to content

Instantly share code, notes, and snippets.

@supercow
Created November 11, 2013 15:08
Show Gist options
  • Save supercow/7414555 to your computer and use it in GitHub Desktop.
Save supercow/7414555 to your computer and use it in GitHub Desktop.
$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