Note: Certificate Replacement with the below steps will fail and rollback if the STS Certificate (Signing Certificate) is expired. Follow the below KB, checking the expiration of the STS certificate on vCenter Server to verify the validity of the STS Certificate, which includes the links to KBs for STS Certificate replacement if it is already expired.
Follow the below steps to replace other Certificates after replacing the STS Certificate.
Note: Take a snapshot or a backup of the vCenter before proceeding.
To regenerate the vSphere 6.x certificates using a new self-signed VMware Certificate Authority certificate:
/usr/lib/vmware-vmca/bin/certificate-manager
C:\Program Files\VMware\vCenter Server\vmcad\certificate-manager
[email protected]
password when prompted.Please configure certool.cfg file with proper values before proceeding to next step.
Press Enter key to skip optional parameters or use Default value.
Enter proper value for 'Country' [Default value : US] :
(Note: Value for Country should be only 2 letters)Enter proper value for 'Name' [Default value : CA] :
(Note: As stated below, this value will be the PNID)Enter proper value for 'Organization' [Default value : VMware] :
Enter proper value for 'OrgUnit' [Default value : VMware Engineering] :
Enter proper value for 'State' [Default value : California] :
Enter proper value for 'Locality' [Default value : Palo Alto] :
Enter proper value for 'IPAddress' [optional] :
Enter proper value for 'Email' [Default value : [email protected]] :
Enter proper value for 'Hostname' [Enter valid Fully Qualified Domain Name(FQDN), For Example : example.domain.com] :
Enter proper value for VMCA 'Name':
(Note: This information will be requested from vCenter Server 6.0 U3, 6.5 and later builds, you may use the FQDN/PNID of vCenter Server for this field. It will be used as a Common Name for the VMCA Root Certificate)You are going to regenerate Root Certificate and all other certificates using VMCA
Continue operation : Option[Y/N] ? : Y
/usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
localhost
' (this is a not recommended configuration): localhost
' when prompted to add alternate SAN (Subject Alternative Name) names to the certificate. C:\Program Files\VMware\vCenter Server\vmafdd\" vmafd-cli.exe get-pnid --server-name localhost