Sunday 2 June 2024

Connect-VIServer The SSL connection could not be established, see inner exception [Solved]

Recently, i've taken up familiarity with Powershell interfacing with VMWware for automation and first issue i came across was when attempting to connect to EsXi with below command
"Connect-VIServer -Server $vCenterServer"

This error comes about when vCenter or EsXi isn't configured with a valid certificate and uses a self-signed certificate and is easy to resolve by ignoring the certificate error by using the following command: "Set-PowerCLIConfiguration -InvalidCertificateAction:Ignore"



Now we can connect with no issue 😊




Trust this helps!!!



No comments:

Post a Comment