Ignore SSL errors in VMware PowerCLI
VMware Logo
I have a few weeks left on a couple of the dedicated servers I’m no longer using, so I figured it would be a good opportunity to refresh my VMware skills and perhaps learn something new with ESXi 6.5 (one of the best free hypervisors available, fully using hardware virtualization).
Turns out, you can install and use VMware PowerCLI on MacOS, pretty cool! As a pre-requisite, you need to install Windows PowerShell using Homebrew first. All the commands below are the PowerShell ones (you start it by typing pwsh).
SSL connection errors in VMware PowerCLI
Because it’s a freshly installed ESXi instance with a self-signed SSL certificate, it will through a warning when connecting to the server using browser or using VMware PowerCLI:
This is because by default PowerCLI doesn’t have a defined approach to invalid SSL certificates.
You can confirm it with the Get-PowerCLIConfiguration command:
Get-PowerCLIConfiguration
Ignore Invalid SSL Certificates in VMware PowerCLI
Let’s update tihe InvalidCertificateAction setting to “Ignore”:
Set-PowerCLIConfiguration -InvalidCertificateAction
And now our connection should work just fine:
That’s it! Will publish more as I learn, so stay tuned!
See Also
- VMware Tools vs OpenVM Tools
- Disk performance in VMware Workstation
- HW Virtualization
- VMware ESXi
VMware Logo
I have a few weeks left on a couple of the dedicated servers I’m no longer using, so I figured it would be a good opportunity to refresh my VMware skills and perhaps learn something new with ESXi 6.5 (one of the best free hypervisors available, fully using hardware virtualization).
Turns out, you can install and use VMware PowerCLI on MacOS, pretty cool! As a pre-requisite, you need to install Windows PowerShell using Homebrew first. All the commands below are the PowerShell ones (you start it by typing pwsh).
SSL connection errors in VMware PowerCLI Because it’s a freshly installed ESXi instance with a self-signed SSL certificate, it will through a warning when connecting to the server using browser or using VMware PowerCLI:
This is because by default PowerCLI doesn’t have a defined approach to invalid SSL certificates. You can confirm it with the Get-PowerCLIConfiguration command:
Get-PowerCLIConfiguration
Ignore Invalid SSL Certificates in VMware PowerCLI
Let’s update tihe InvalidCertificateAction setting to “Ignore”:
Set-PowerCLIConfiguration -InvalidCertificateAction
And now our connection should work just fine:
That’s it! Will publish more as I learn, so stay tuned!
See Also
- VMware Tools vs OpenVM Tools
- Disk performance in VMware Workstation
- HW Virtualization
- VMware ESXi