Under Certificate management in Vcenter UI the Trusted Root tab shows Error occurred while fetching trusted root certificates: Unable to proceed due to certificate exception: malformed PEM data encountered
search cancel

Under Certificate management in Vcenter UI the Trusted Root tab shows Error occurred while fetching trusted root certificates: Unable to proceed due to certificate exception: malformed PEM data encountered

book

Article ID: 417866

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Navigating to the Certificate Management in the vCenter UI shows the error:
    "Error occurred while fetching trusted root certificates: Unable to proceed due to certificate exception: malformed PEM data encountered"
  • The vCenter services may/may not be impacted. But adding additional Trusted Roots or listing the current Trusted Roots are not possible.
  • You don't see any expired certificates within the TRUSTED_ROOTS running the command: 
    /usr/lib/vmware-vmafd/bin/vecs-cli entry list --store TRUSTED_ROOTS --text | grep "Alias\|Not After\|Subject:\|Issuer:"
  • Note: All the above conditions should be met to be applicable for this issue.

Environment

vCenter 8.x

Cause

This can be due to the following reason(s):

  • Missing or incorrect -----BEGIN or -----END boundary markers (e.g., -----BEGIN CERTIFICATE-----, -----END RSA PRIVATE KEY-----).
  • Corrupted or Incomplate pem file that the Trusted Root(s) were previously registered with
  • They have the CA bit set to "FALSE"
  • The malformed PEM data could either be residing in VECS or VMDIR stores.

Resolution