Follow this process to retrieve the private key for a certificate signing request generated in the vSphere Client.
Symptoms:
Missing Private Key when following the process to import the Custom Certificate,
VMware vCenter Server 7.0.x
VMware vCenter Server 8.0.x
When the Certificate Signing Request is generated in the vSphere Client, there is no option to download the private key.
Retrieve the private key by using the following process:
shell.set --enabled true
shell
# /usr/lib/vmware-vmafd/bin/vecs-cli entry getkey --store MACHINE_SSL_CERT --alias __MACHINE_CSR
-----BEGIN PRIVATE KEY-----
MIIEvQI...
70mX1c=
-----END PRIVATE KEY-----