The error in the
Issue section means that the vCenter cert specified with the
-vcenter-ca-certs flag for the
stembuild construct command doesn't have a
SAN (Subject Alternative Name) for the
<IP>.
If you try to decode the cert and look for the
SAN field in the certificate, you will not be able to find the necessary IP address from the error message.
openssl x509 -in <vcenter-ca-cert> -noout -text
Workaround
Skip SSL validation by exporting the following enviroment variable before running the construct command:
- If you're on a Linux host using the vSphere Stembuild CLI - Linux tool to create Windows Stemcells, you can export the GOVC_INSECURE variable via:
export GOVC_INSECURE=true
- If you're on a Windows host (using PowerShell) using the vSphere Stembuild CLI - Windows tool to create Windows Stemcells, you can export the GOVC_INSECURE variable via:
$Env:GOVC_INSECURE = "true"
Using
GOVC_INSECURE will help because the
stembuild binary uses a client that compiles commands to use
govc CLI to execute commands against your vCenter and will respect the exported environment variable.