[PS] VMware ESX Certificate validation

The connection between vCenter and the ESXHost is established and maintained by certificates.

You as an administrator would like to know when you certificates expire.

So I wrote a small function that can help get the certificate used from the hosts that are connected to your vcenter.

The input for this function is a [VMware.Vim.HostSystem] object this is generated with the standard VMware command

Get-view -ViewType HostSystem -Server <vCenterServer>

When the Function is loaded you can use the following small script to get the data out of your vcenter or vcenters.

In my Lab this is generating the following output