Expired VMCA certificates need to be replaced first, then we can replace the rest of the certificates
Note: sts certificates are not managed by SDDC-Manager, and should be replaced using the appropriate KBs:
It is recommended that you use CA signed certificates when you do this replacement, but you can replace vCenter certificates with Self Signed certificates
Replace VMCA certificate:
Reestablishing trust with SDDC-Manager:
Note: If the root certificate or VMCA certificate where not replaced, then trust should be reestablished automatically
Note: We will need to use the following steps to import both root and intermediate certificates
- Use any file transfer utility to copy root CA certificate file to the /tmp directory on the SDDC-Manager VM.
- SSH to SDDC-Manager and change to the root user:
su
- Run the below command to get commonsvcs truststore password
cat /etc/vmware/vcf/commonsvcs/trusted_certificates.key
- Use the following command to import root CA to commonsvcs truststore:
keytool -importcert -alias <aliasname> -file <certificate file> -keystore /etc/vmware/vcf/commonsvcs/trusted_certificates.store
Note: <aliasname> : This can be any user defined name. <certificate file> : Provide the path of root CA Certificate
- When prompted, provide the password to add certificate to truststore obtained in step 3.
- Type yes when prompted to trust the certificate.
- Verify if new root CA is added to common services truststore, enter the password for truststore key obtained in step 3.
keytool -list -v -keystore /etc/vmware/vcf/commonsvcs/trusted_certificates.store
- Use the following command to import root CA to SDDC-Manager truststore:
keytool -importcert -alias <aliasname> -file <certificate file> -keystore /etc/alternatives/jre/lib/security/cacerts
Note: <aliasname> : This can be any user defined name. <certificate file> : Provide the path of root CA Certificate
- When prompted, provide the password to add certificate to truststore. The default password is "changeit".
- Type yes when prompted to trust the certificate.
- Verify if new root CA is added to SDDC-Manager truststore.
keytool -list -v -keystore /etc/alternatives/jre/lib/security/cacerts
- After importing CA certificate to the truststore, restart all the SDDC-Manager Services.
/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.sh