KMS Certificate Renewal and Trust Configuration for vCenter Server
search cancel

KMS Certificate Renewal and Trust Configuration for vCenter Server

book

Article ID: 434963

calendar_today

Updated On:

Products

VMware vCenter Server 8.0 VMware vSphere ESXi

Issue/Introduction

  • vCenter displays "No trusted connection" for the Key Provider.
  • Errors during certificate upload: "Operation failed! A general runtime error occurred. CSR mismatch."
  • Unable to establish trust with external KMS after certificate renewal.
  • Skyline Health reports connection issues between vCenter and KMS servers.

Procedure for STORE KMS_ENCRYPTION certificate renewal within vSphere environments, specifically concerning whether a simple UI refresh is sufficient or if manual trust re-establishment is required.

Environment

  • VMware vCenter Server 8.x
  • External Key Management Server (KMS) using KMIP protocol

Cause

  • The trust relationship is based on a certificate exchange/private key handshake.
  • When a certificate is renewed on the KMS using an old or incorrect CSR, the public key will not match the private key stored in vCenter's memory (VECS), resulting in a "CSR mismatch" or communication failure.
  • When a certificate is renewed the previous "handshake" becomes invalid because the cryptographic thumbprint has changed.  The trust relationship must be updated.

Resolution

To renew a client certificate directly from the vSphere Client by generating a Certificate Signing Request (CSR), follow these steps:

1. Take a snapshot or a backup of the vCenter before proceeding: Snapshot Best practices for vCenter Server Virtual Machines

2. Navigate to Key Providers:
In the vSphere Client, go to vCenter Server > Configure > Security > Key Providers.

3. Initiate the Trust Update:
Select the affected Key Provider (e.g., CipherTrust) from the list.
Click Establish Trust and select Make KMS trust vCenter (or New Certificate Signing Request).

4. Generate the CSR:
In the dialog, ensure New Certificate Signing Request (CSR) is selected.
Click Next/OK. vCenter will generate a new private key internally and display the CSR text.
Click Download to save the CSR as a `.pem` or `.csr` file.

5. Sign the Certificate in KMS:
Access your KMS (e.g., CipherTrust Manager) and navigate to the KMIP section.
Look for Client Certificates and choose Create Certificate from CSR.
Upload the CSR file downloaded from vCenter. The KMS will provide a signed `.pem` certificate in return.

Note: Ensure the KMS admin signs this specific new CSR and does not use a previously generated one.

6. Complete the Process in vCenter:
Return to the Key Providers screen in vCenter.
Select the provider, click Establish Trust, and select Upload Signed CSR Certificate.
Upload the signed certificate file received from your KMS.

Additional Information

For further assistance Contact Broadcom support