You can enable certificate verification by using variables.

The vSphere SDK for Perl and vCLI use Crypt::SSLEay to support certificate verification. Crypt::SSLEay enables verification of certificates signed by a Certificate Authority (CA) if you set the following two variables.

HTTPS_CA_FILE – The CA file.

HTTPS_CA_DIR – The CA directory.

See the Crypt::SSLEay documentation for details on setup.


If the two environment variables HTTPS_CA_FILE and HTTPS_CA_DIR are set incorrectly or if a problem with the certificate exists, vCLI commands do not complete, and do not display error or warning messages. Use HTTPS_DEBUG for troubleshooting before running vCLI commands.