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.
VMware Cloud Director 10.x
The error occurs when the pem file includes the Private Key for the certificate with Server, Root and Intermediate certificates.
Remove the Private key portion from the PEM file and only include Private Key separately under Certificates Library.