Manually updated vCenter endpoint certificate via TCA UI
Using vSphere SSO/AD credentials
Updated from Administration > Connected Endpoints > Click ... (edit) on vCenter Server endpoint > Update Certificate
Error received after certificate update:
Certificate of vCenter is untrusted. Please click "Update Certificate" to provide the latest vCenter CA certificate in TCA.
Endpoint Details report:
status: conditions: - type: Ready reason: ThumbprintMismatch status: 'False' message: >- [TLS-Probe] Error in TLS server certificate thumbprint check: certificate thumbprints are not matched, expected: ######################D4, actual: ######################20
TCA: 3.3
TCP: 5.0.1
When a vCenter endpoint has multiple certificates in its chain, the UI picks up the root certificate SHA-1 thumbprint and populates it as a SHA-1 thumbprint for the vCenter certificate update input instead of picking the leaf certificate SHA-1 thumbprint.
Resolved in the 3.3.0.1 patch
Log in to the TCA Manager UI.
Press F12 (or Cmd+Option+I on Mac) to open Developer Tools and go to the Network tab.
Go to the endpoint in question and trigger the Certificate Update operation in the UI.
Once the certificate update fails, go to the Network tab and search forcertImport.
Right-click the failed certImport network entry and select Copy > Copy as cURL.
Paste the copied curl command into a text editor.
Update the thumbprint field within the --data-raw section with the leaf certificate thumbprint of your new certificate.
Replace:"thumbprint":"##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##"
Obtain thumbprint:openssl x509 -in <leafCertificate>.crt -noout -fingerprint
Copy the entire modified curl command
Open a terminal, paste the curl command, and press Enter.
Sample Payload:
curl 'https:/<tca-m-IP>/tca/monitoring/api/v1/endpoints/<endpointId>/action/certImport' \ -H 'accept: application/json' \ -H 'accept-language: en-US,en;q=0.9' \ -H 'cache-control: no-cache' \ -H 'content-type: application/json' \ -b 'JSESSIONID=EF89D3D31945A32A8A44A344F5A19816; NSPSESSIONID=2ea9e412:01d0:4053:821c:c3bced3deeff' \ -H 'origin: https://#.#.#.#' \ -H 'pragma: no-cache' \ -H 'priority: u=1, i' \ -H 'referer: https://#.#.#.#/telco/ui/tca-manager/' \ -H 'sec-ch-ua: "Chromium";v="146", "Not-A.Brand";v="24", "Microsoft Edge";v="146"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ -H 'sec-fetch-dest: empty' \ -H 'sec-fetch-mode: cors' \ -H 'sec-fetch-site: same-origin' \ -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/146.0.0.0 Safari/537.36 Edg/146.0.0.0' \ --data-raw '{"systemUuids":["############-########-####-####-####-########","############-########-####-####-####-########"],"certificate":"-----BEGIN CERTIFICATE-----\n#########################################################\n-----END CERTIFICATE-----","thumbprint":"##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##"}' \ --insecure
Sample Response:
{ "status" : "QUEUED", "intentId" : "########-####-####-####-############", "message" : "Certificate update operation is in progress", "actionType" : "UPDATE_CERTIFICATE"}%