4. December 2024
PowerCLI: Connect-VIServer The SSL connection could not be established
I wanted to make my life easier again in a customer situation and use my PowerCLI scripts to shorten repeating tasks. The customer had given me an Ubuntu OS notebook and I installed PowerShell/PowerCLI on it. When I tried to use my script, I got the following error message:
Connect-VIServer The SSL connection could not be established, see inner exception.
So it’s all about certificates, let’s take a look at our current PowerCLI configuration:
Get-PowerCLIConfiguration
As you can see, the parameter “InvalidCertificateAction” is set to Unset, this must be set depending on the environment. As this is a test environment, I set the parameter to Ignore:
Set-PowerCLIConfiguration -InvalidCertificateAction Ignore
And as soon as you run your PowerCLI Script it should/will work:
This is it from this short Blog Post, if you have any questions please leave a comment below. 🙂