user788454
user788454

Reputation:

AWS: how to import a SSL certificate in PFX format into AWS?

I have a legitimate SSL certificate in PFX file format. I run the following command:

pkcs12 -in "c:\temp\my_ssl_certificate.pfx" -out "c:\temp\my_ssl_certificate.txt" -nodes

Then I went to import certificate into AWS. I pasted the content between "----BEGIN CERTIFICATE ---" and "---- END CERTIFICATE ----" into the "Certificate body" textbox, and pasted what is between "-----BEGIN RSA PRIVATE KEY-----" and "-----END RSA PRIVATE KEY-----" into the "Certificate private key" texbox. Both complained

The certificate private key (or body) provided is not in a valid PEM format

What is wrong?

Upvotes: 0

Views: 1358

Answers (1)

Kaushal Kumar Panday
Kaushal Kumar Panday

Reputation: 2467

It is probably because you have not included the tags. You should be pasting it with the tags "-----BEGIN RSA PRIVATE KEY-----" and "-----END RSA PRIVATE KEY-----"

Upvotes: 0

Related Questions