This document shows how to get the root certificate for your vCenter server.

When a client, like Google Distributed Cloud, sends a request to your
vCenter server, the server must prove its identity to the client by presenting
a certificate or a certificate bundle. To verify the certificate or bundle,
Google Distributed Cloud must have the root certificate in the chain of trust.

When you fill in an
[admin workstation configuration file](https://docs.cloud.google.com/anthos/clusters/docs/on-prem/1.6/how-to/admin-workstation-configuration-file),
you provide the path of the root certificate in the `vCenter.caCertPath` field.

Your VMware installation has a certificate authority (CA) that issues a
certificate to your vCenter server. The root certificate in the chain of trust
is a self-signed certificate created by VMware.

If you do not want to use the VMWare CA, which is the default, you can configure
VMware to
[use a different certificate authority](https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.psc.doc/GUID-3D0DE463-D0EC-442E-B524-64759D063E25.html).

If your vCenter server uses a certificate issued by the default VMware CA,
download the certificate as follows:

```
curl -k "https://[SERVER_ADDRESS]/certs/download.zip" > download.zip
```

Replace <var translate="no">\[SERVER_ADDRESS\]</var> with the address of your vCenter server.

Install the `unzip` command and unzip the certificate file:

```
sudo apt-get install unzip
unzip download.zip
```

If the unzip command doesn't work the first time, enter the command again.

Find the certificate file in `certs/lin`.