You can enable certificate verification by using variables.

The vSphere SDK for Perl uses 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.

Caution: If the two environment variables HTTPS_CA_FILE and HTTPS_CA_DIR are set incorrectly or if a problem with the certificate exists, vSphere SDK for Perl scripts might not complete, and might not display error or warning messages. Use HTTPS_DEBUG for troubleshooting before running vSphere SDK for Perl scripts.