6.0.3

Table Of Contents
Procedure
1 Make one copy of certool.cfg for each machine that needs a new certicate.
You can nd certool.cfg in the following locations:
Windows
C:\Program Files\VMware\vCenter Server\vmcad
Linux
/usr/lib/vmware-vmca/share/config/
2 Edit the custom conguration le for each machine to include that machine's FDQN.
Run NSLookup against the machine’s IP address to see the DNS listing of the name, and use that name for
the Hostname eld in the le.
3 Generate a public/private key le pair and a certicate for each le, passing in the conguration le that
you just customized.
For example:
certool --genkey --privkey=machine1.priv --pubkey=machine1.pub
certool --gencert --privkey=machine1.priv --cert machine1.crt --Name=Machine1_Cert --config
machine1.cfg
4 Stop all services and start the services that handle certicate creation, propagation, and storage.
The service names dier on Windows and the vCenter Server Appliance.
Windows
service-control --stop --all
service-control --start VMWareAfdService
service-control --start VMWareDirectoryService
service-control --start VMWareCertificateService
vCenter Server
Appliance
service-control --stop --all
service-control --start vmafdd
service-control --start vmdird
service-control --start vmcad
5 Add the new certicate to VECS.
All machines need the new certicate in the local certicate store to communicate over SSL. You rst
delete the existing entry, then add the new entry.
vecs-cli entry delete --store MACHINE_SSL_CERT --alias __MACHINE_CERT
vecs-cli entry create --store MACHINE_SSL_CERT --alias __MACHINE_CERT --cert machine1.cert
--key machine1.priv
6 Restart all services.
service-control --start --all
Example: Replacing Machine Certificates With VMCA-Signed Certificates
1 Create a conguration le for the SSL certicate and save it as ssl-config.cfg in the current directory.
Country = US
Name = vmca-<PSC-FQDN-example>
Organization = <my_company>
OrgUnit = <my_company Engineering>
State = <my_state>
Locality = <mytown>
Hostname = <FQDN>
Chapter 3 vSphere Security Certificates
VMware, Inc. 95