Friday, June 14, 2019

HTTPS Cert Expired and I don't care

Cert expiration is the bain of web administrators and Internet Web Properties.
use to be, you had to pay richly for the grand privilege of having a certificate on your website.
Now it just a matter of course.

Use this PowerShell incantation to set the "I Don't Care" on the certificate checking code.


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


Yes, I know it is not secure now, but I need to get to the site for testing or whatever, and I am willing to accept a connection to allow me to do what I need. 

* Use of course at your own risk. 

No comments:

Post a Comment