The vCenter server address that you enter in your Google Distributed Cloud software only for VMware configuration files must match the serving certificate of your vCenter server. Depending on the certificate, the value is an IP address or a hostname, and in some cases either value works. You specify the address in your admin workstation configuration file or admin cluster configuration file, and in some cases also in a user cluster configuration file.
Find the address in the serving certificate
Download the serving certificate of your vCenter server, and save it to a file
named vcenter.pem:
true | openssl s_client -connect VCENTER_IP:443 -showcerts 2>/dev/null | sed -ne '/-BEGIN/,/-END/p' > vcenter.pem
Replace VCENTER_IP with the IP address of your
vCenter Server.
Open the certificate file to see the Subject Common Name and the Subject Alternative Name:
openssl x509 -in vcenter.pem -text -noout
The output shows the Subject Common Name (CN). This might be an IP address, or it might be a hostname. For example:
Subject: ... CN = 203.0.113.100
Subject: ... CN = my-host.my-domain.example
The output might also include one or more DNS names under
Subject Alternative Name:
X509v3 Subject Alternative Name:
DNS:vcenter.my-domain.example
Choose the Subject Common Name or one of the DNS names under
Subject Alternative Name to use as the value of the vCenter server address
in your configuration file. For example:
vCenter:
credentials:
address: "203.0.113.100"
vCenter:
credentials:
address: "my-host.my-domain.example"