NSX Edge nodes upgrade from 4.2.2.1 to version 4.2.3.3 fails during the download of the Node Upgrade Bundle (NUB). The Edge node is unable to establish a secure connection with the NSX Manager repository because of an SSL certificate verification failure: SSL: no alternative certificate subject name matches target host name 'FQDN of NSX manager'
The error is identified from syslog of NSX edge nodes during the curl-based download process:
YYYY-MM-DDTHH:MM:SS.487Z <Edge VM FQDN> NSX 1432 - [nsx@6876 comp="nsx-edge" subcomp="upgrade-agent" tid="1806" level="ERROR" errorCode="MPA50007"] Error downloading nub 'https://<NSX manager FQDN>/repository/4.2.3.3.0.25171318/Edge/nub/VMware-NSX-edge-4.2.3.3.0.25171324.nub', output msg: , error msg: * Trying (with httplib) <NSX manager FQDN>:443...#012* certificate verification ############################################################### from <NSX manager FQDN>:443 failed: SSL: no alternative certificate subject name matches target host name '<NSX manager FQDN>'#012* Closing connection 0#012curl_wrapper: (51) SSL: no alternative certificate subject name matches target host name '<NSX manager FQDN>'#012
YYYY-MM-DDTHH:MM:SS.487Z <Edge VM FQDN> NSX 1432 - [nsx@6876 comp="nsx-edge" subcomp="upgrade-agent" tid="1806" level="ERROR" errorCode="MPA50006"] Error preparing upgrade
NSX 4.2.x
The root cause is a mismatch between the FQDN/IP used to access the NSX Manager and the identities configured in the NSX Manager’s REST API certificate.
This typically occurs when a CA-signed certificate was replaced but did not include the Cluster VIP, all Node FQDNs, or IPs in the SAN field.
To resolve the SSL mismatch, you must ensure the certificate identities match the access URL.
Update CA-Signed Certificate:
Use Self-Signed Certificate (Alternative):
If a CA certificate is not strictly required, generate a new self-signed certificate via the NSX UI (System > Certificates) that includes the correct FQDNs/IPs and apply it to the REST API.
DNS Validation:
Ensure that NSX manager FQDN resolves correctly to the expected VIP or Node IP. If the name resolves to an IP not in the certificate, the error will persist.
For more information, refer KB 400165 where similar issue was observed during NSX manager upgrades (Root cause is similar for NSX Edge upgrade failures)