Renewing Machine_SSL custom cert via vCenter UI fails while importing signed certificate
vCenter 8.0
The old expired trusted root cert subject key is still used as authority key in Machine_SSL while creating a CSR
After new Root Certificate is generated, the old one needs to be unpublished from the vmdir and VECS store
When checking if the Root certificate is signing any other certificate in the environment make sure to note below:
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | grep -i alias
12:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:21
/usr/lib/vmware-vmafd/bin/vecs-cli entry list --store MACHINE_SSL_CERT --text | less
In the example below we see the Authority Key Identifier is not matching with the Subject Key Identifier of the Root Certificate, meaning the vpxd certificate below is not signed with the Old Root Certificate. Proceed to check for all stores
vpxd
X509v3 Subject Key Identifier:
##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##
X509v3 Authority Key Identifier:
45:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:54