In versions of VMware NSX prior to 4.2.1.0, the graphical user interface for managing trust certificates does not expose fields for entering Subject Alternative Name (SAN) attributes during the Certificate Signing Request (CSR) generation process. This prevents users from creating valid requests that include required FQDN or IP address extensions through the standard UI workflow, necessitating a programmatic approach to ensure certificate compliance with security standards.
Symptoms:
The NSX Manager UI design in these releases does not include extended attribute support for SAN entries within the standard "Generate CSR" certificate request workflow.
Fixed in release 4.2.1.0 and higher. See for steps to download this release.
To generate a CSR with Subject Alternative Name fields, you must utilize the NSX API. Follow these steps:
csr_payload.json on the local filesystem to define the certificate attributes:{
"display_name": "####",
"subject": {
"attributes": [
{ "key": "CN", "value": "####" },
{ "key": "OU", "value": "####" },
{ "key": "O", "value": "####" },
{ "key": "L", "value": "####" },
{ "key": "ST", "value": "####" },
{ "key": "C", "value": "####" }
]
},
"key_size": "2048",
"algorithm": "RSA",
"extensions": {
"subject_alt_names": {
"dns_names": [
"####",
"####"
]
}
}
}@ operator to ingest the JSON file: curl -k -X POST -H "Content-Type: application/json" -u "####:####" -d @csr_payload.json https://####/api/v1/trust-management/csrs-extended!, ensure they are properly escaped for the shell or update the password to a supported string before running the command.For general certificate replacement procedures, refer to doc: Replace Certificates.