"Failed to parse the Key file" when uploading a key file

Hi,

I'm trying to create a Keystores with private key and cert. obtained from Godaddy.com in ADMIN/Environments. It failed when uploading and the error message is :

"Error creating Alias

Failed to parse the Key file: ..."

Can someo ne please help? One thing I notice is, my key file starts and ends with:

----BEGIN PRIVATE KEY-----
-----END PRIVATE KEY-----

it seems like according to the doc (https://docs.apigee.com/api-platform/system-administration/creating-keystores-and-truststore-cloud-using-edge-ui#about-the-format-of-the-cert-and-key-files) the key file in PEM format should have the following headers and footers:

-----BEGIN ENCRYPTED PRIVATE KEY-----
-----END ENCRYPTED PRIVATE KEY-----

I've also tried uploading Certificate Only and it went through fine.

Thanks very much.

0 1 2,207
1 REPLY 1

Luckily, I've figured it out, and it's nothing to do with Apigee. I want to say thank you if someone has already started looking at it.

The reason is the private key that I downloaded from the provider that has a BOM character. After removing the character (https://stackoverflow.com/questions/7297888/0xef-0xbb-0xbf-character-showing-up-in-files-how-to-remove-them), I'm able to encrypt and upload the key.