When attempting to renew or replace an ESXi host certificate with a custom CA-signed certificate via the vSphere Client UI, the process fails during the Import and Replace workflow.
The CA-signed certificate file (.crt or .cer) contains descriptive text headers (e.g., "Bag Attributes," "subject=", "issuer=") above the -----BEGIN CERTIFICATE----- marker and below the -----END CERTIFICATE----- marker.
This data must be edited out of the certificate file before it can be imported to the ESXi host.
Remove the metadata from the certificate prior to importing to the ESXi host .
-----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- tags.BEGIN tag and below the END tag.<REMOVE METADATA HERE>
-----BEGIN CERTIFICATE-----
<alphanumeric certificate characters>
-----END CERTIFICATE-----
<REMOVE METADATA HERE>
-----BEGIN CERTIFICATE-----
<alphanumeric certificate characters>
-----END CERTIFICATE-----
<REMOVE METADATA HERE>
Import the updated certificate to the certificate update menu and proceed with the certificate replacement process.