Alan Renouf has posted a new way to automate the test for valid SSL certificates in vCenter.
…what if we wanted to check these certificates in PowerCLI, recently I found a great PowerShell Advanced function which allows us to do just this, we are able to test the certificate of any given website and return the details.
[…]
The code will output the most important details included who the issuer of the certificate is, whether it is valid and when it expires, both in date and length of time.
This could easily be adapted to check on a regular basis and email closer to the expiry date.