Importing wildcard certificate pem to Cloud Director fails with error - Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
search cancel

Importing wildcard certificate pem to Cloud Director fails with error - Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.

book

Article ID: 391182

calendar_today

Updated On: 03-18-2025

Products

VMware Cloud Director

Issue/Introduction

When importing wildcard certificate to the Trusted Certificates location under Cloud Director provider, it fails with following errors -

Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.
String contains an invalid character

However, the certificate file is successfully added under Certificates Library. 

 

Environment

VMware Cloud Director 10.x

Cause

The error occurs when the pem file includes the Private Key for the certificate with Server, Root and Intermediate certificates. 

Resolution

Remove the Private key portion from the PEM file and only include Private Key separately under Certificates Library.