[CERTIFICATE] Replace cert Failed: Subject Alternate Name (SAN) is empty in the certificate provided. Please provide a valid vCenter server certificate with a valid SAN field.
AttributeError: 'NoneType' object has no attribute 'lower' in verify_pnid_in_sanFile "/root/vCert-6.x.0-########/operation/manage_certificate.py", line 663, in verify pnid_in san
san_lower = get_subject_alternative_names (cert_x509) .lower () AttributeError: 'NoneType' object has no attribute 'lower'
The vCenter Server Primary Network Identifier (PNID), typically the FQDN, is missing from the Subject Alternative Name (SAN) extension of the certificate being imported. This can also occur if the certificate chain (Root/SubCA) is incorrectly pasted into the Machine SSL certificate field, as CA certificates do not typically contain SAN fields.
This can be verified by opening the certificate from Windows desktop and look for 'Subject Alternative Name' field under the Details tab as below:
To resolve this issue, ensure the certificate contains the correct PNID and is placed in the correct UI field.
3. Manage certificates -> 1. Machine SSL certificate -> 2. Replace Machine SSL certificate with a custom CA-signed certificate -> 1. Generate Certificate Signing Request and Private KeyNote: Use the same tool while replacing the certificate. For example, if the CSR is generated from vSphere Client, use only vSphere Client during Certificate import.