VMware Perl SDK error “Server version unavailable..”

Whilst working with the VMware Perl SDK this morning I came across this error:

Server version unavailable at ‘https://hostname:443/sdk/vimService.wsdl‘ at /usr/lib/perl5/5.8.8/VMware/VICommon.pm line 545.

Turns out it can’t verify the server’s SSL certificate.

export PERL_LWP_SSL_VERIFY_HOSTNAME=0 in your shell before using a command, and it then works correctly.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>