lamw / vmware-scripts

Various scripts for VMware based solutions
http://www.williamlam.com/
BSD 2-Clause "Simplified" License
859 stars 489 forks source link

Server version unavailable #99

Open olivierBTIreland opened 3 years ago

olivierBTIreland commented 3 years ago

This script used to work with previous vcenter version now with the upgrade to 6.7 I get the following error

perl vm.pl --server vcenterprdcw.internal.fbd.ie --username fbd\bt_$$doveloso --password Password2020! --type vcenter --datacenter City-West Server version unavailable at 'https://vcenterprdcw.internal.fbd.ie:443/sdk/vimService.wsdl' at /usr/share/perl/5.30/VMware/VICommon.pm line 705

Any suggestions ?

olivierBTIreland commented 3 years ago

I've added the line $ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0; in my script and in /usr/share/perl/5.30/VMware/VICommon.pm without any improvement. The SSL is indeed using a custom CA and isn't verified