6.0.3

Table Of Contents
2 From the vSphere Web Client, stop the Auto Deploy service.
a Select Administration, and click System  under Deployment.
b Click Services.
c Right-click the service you want to stop and select Stop.
3 On the system where the Auto Deploy service runs, replace rbd-ca.crt and rbd-ca.key in /etc/vmware-
rbd/ssl/ with your custom certicate and key le.
4 On the system where the Auto Deploy service runs, update the TRUSTED_ROOTS store in VECS to use
your new certicates.
vecs-cli entry delete --store TRUSTED_ROOTS --alias
rbd_cert
vecs-cli entry create --store TRUSTED_ROOTS --alias
rbd_cert --cert /etc/vmware-rbd/ssl/rbd-ca.crt
Windows
C:\Program Files\VMware\vCenter Server\vmafdd\vecs-cli.exe
Linux
/usr/lib/vmware-vmafd/bin/vecs-cli
5 Create a castore.pem le that contains what's in TRUSTED_ROOTS and place the le in
the /etc/vmware-rbd/ssl/ directory.
In custom mode, you are responsible for maintaining this le.
6 Change the certicate mode for the vCenter Server system to custom.
See “Change the Certicate Mode,” on page 167.
7 Restart the vCenter Server service and start the Auto Deploy service.
The next time you provision a host that is set up to use Auto Deploy, the Auto Deploy server generates a
certicate using the root certicate that you just added to the TRUSTED_ROOTS store.
Restore ESXi Certificate and Key Files
When you replace a certicate on an ESXi host by using the vSphere Web Services SDK, the previous
certicate and key are appended to a .bak le. You can restore previous certicates by moving the
information in the .bak le to the current certicate and key les.
The host certicate and key are located in /etc/vmware/ssl/rui.crt and /etc/vmware/ssl/rui.key. When
you replace a host certicate and key by using the vSphere Web Services SDK vim.CertificateManager
managed object, the previous key and certicate are appended to the le /etc/vmware/ssl/rui.bak.
N If you replace the certicate by using HTTP PUT, vifs, or from the ESXi Shell, the existing certicates
are not appended to the .bak le.
Procedure
1 On the ESXi host, locate the le /etc/vmware/ssl/rui.bak.
The le has the following format.
#
# Host private key and certificate backup from 2014-06-20 08:02:49.961
#
-----BEGIN PRIVATE KEY-----
previous key
-----END PRIVATE KEY-----
vSphere Security
172 VMware, Inc.