Symptoms:
Failed to replace certificate for nsxt_fqdn due to: 400 : "{<EOL> "httpStatus" : "BAD_REQUEST",<EOL> "error_code" : 2007,<EOL> "module_name" : "internal-framework",<EOL> "error_message" : "Data type mismatch, expected certificate_signed but received certificate_ca."<EOL>}"
2022-08-30T07:03:32.668+0000 ERROR [vcf_om,9b6ea2e9dbea41b7,4179] [c.v.v.c.n.NsxTManagerCertificatePlugin,om-exec-29] 400 : "{<EOL> "httpStatus" : "BAD_REQUEST",<EOL> "error_code" : 2007,<EOL> "module_name" : "internal-framework",<EOL> "error_message" : "Data type mismatch, expected certificate_signed but received certificate_ca."<EOL>}"
/var/log/syslog file:{"httpStatus":"BAD_REQUEST","error_code":6111,"module_name":"internal-framework","error_message":"Attempt to import a CA certificate for a non-CA CSR."}
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware Cloud Foundation
VMware NSX
This issue occurs if the NSX-T server Certificate is not compliant with the requirements.
NSX- T certificates have the following requirements:
To verify if the certificate is complaint with the requirements, review the NSX-T server certificate using openssl
openssl x509 -in /opt/vmware/vcf/operationsmanager/certificates/<domain_name>/<nsxt_fqdn>/<nsxt_fqdn>.crt -noout -text
Note: Domain_name is the workload domain for which certificate replacement failed
X509v3 Basic Constraints: critical
CA:FALSE