Symptoms:
- In the /var/log/vmware/vcf/common-svcs/vcf-commonsvcs.log the SDDC Manager certificate replacement fails with below error:
2021-05-10T11:32:05.084+0000 INFO [common,250eda9f59a257cb,f1f8] [c.v.e.s.a.u.NginxCertUtilityImpl,http-nio-127.0.0.1-7100-exec-15] Reloading NGINX server ...
2021-05-10T11:32:05.136+0000 ERROR [common,250eda9f59a257cb,f1f8] [c.v.e.s.c.util.LocalProcessService,http-nio-127.0.0.1-7100-exec-15] Local Command Failed with exit value 1.
Output Logs :
Error Logs are stored at LocalProcess ERROR: 2021-05-10 11:32:05 - + set -e
LocalProcess ERROR: 2021-05-10 11:32:05 - + nginx -t
LocalProcess ERROR: 2021-05-10 11:32:05 - nginx: [emerg] cannot load certificate "/etc/ssl/certs/vcf_https.crt": PEM_read_bio_X509() failed
LocalProcess ERROR: 2021-05-10 11:32:05 - nginx: configuration file /etc/nginx/nginx.conf test failed
LocalProcess ERROR: 2021-05-10 11:32:05 - + exit 1
2021-05-10T11:32:05.136+0000 ERROR [common,250eda9f59a257cb,f1f8] [c.v.e.s.a.u.NginxCertUtilityImpl,http-nio-127.0.0.1-7100-exec-15] Nginx reload script failed to execute
- Attempts to replace the NSX-T certificate fails and reports the following in the /var/log/vmware/vcf/operationsmanager/operationsmanager.log:
2021-05-10T11:32:06.728+0000 ERROR [vcf_om,d5e87ee2f1f14250,261b] [c.v.v.c.n.NsxTManagerCertificatePlugin,om-exec-19] 500 : [{"error_code": 36233, "error_message": "Error updating http service certificate.", "module_name": "node-services"}]
org.springframework.web.client.HttpServerErrorException$InternalServerError: 500 : [{"error_code": 36233, "error_message": "Error updating http service certificate.", "module_name": "node-services"}]
Also,if someone tries to decode rootca.crt,below error is coming:
openssl x509 -in /opt/vmware/vcf/operationsmanager/certificate/<domain_name>/rootca.crt -noout -text
unable to load certificate
- Trying to decode rootca.crt with the command below fails with "Unable to load certificate":
openssl x509 -in /opt/vmware/vcf/operationsmanager/certificate/<domain_name>/rootca.crt -noout -text
Note: This log excerpt is an example. Date, time, and environmental variables may vary depending on your environment.