So I recently started working more with PowerCLI. After my time at VMWorld 2019 (which I will cover in another post) I realized how powerful that PowerCLI actually is (pun not intended). In starting to work with PowerCLI I came across the following message whil: trying to connect to my vCenter
Connect-vIServer : xx-x-xxxx xx:xx:xx Connect-VIServer Error: Invalid server certificate. Use Set-PowerCLIConfiguration to set the value for the InvalidCertificateAction option to Prompt if you’d like to connect once or to add a permanent exception for this server.
I did some googling and I found this article,so shout out to Ivo Beerens for his article.
https://www.ivobeerens.nl/
In his article he goes on to share this command
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Confirm:$false
After putting that into PowerShell and pressing enter you will no longer get the Invalid Certificate message.