When I run a Perl script in centos6.6, the "Server Version unavailable ... line 545" issue appears,
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/56/wKiom1V5QQqgUYmmAAE3u4RM610360.jpg "title=" Perl-sdk-545.png "alt=" Wkiom1v5qqqguymmaae3u4rm610360.jpg "/>
This is due to the inability to verify the server's SSL certificate.
Set the following environment variables to solve the problem:
Export PERL_LWP_SSL_VERIFY_HOSTNAME=0 This environment variable only works for the current session and you can add to the/ETC/BASHRC to make it work for global. Vim/etc/bashrc......export perl_lwp_ssl_verify_hostname=0 Save after exiting, under source, so that it takes effect immediately. It's OK to rerun the Perl script after SOURCE/ETC/BASHRC.
Reference Address:
This article is from the "Bckong" blog, make sure to keep this source http://bckong.blog.51cto.com/5092126/1660909
VMware Perl SDK Error "Server Version unavailable. Line 545 "