Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Provided certificate is not a valid self signed. Please provide either a valid self-signed certificate or certificate chain

I receive this error when I try to import a certificate on AWS ACM.

Provided certificate is not a valid self signed. Please provide either a valid self-signed certificate or certificate chain.

The certificated I have are initially in .pfx format and I use sslshopper: https://www.sslshopper.com/ssl-converter.html to convert them into pem. There is only certificate body and private key present in the converted pem format and no certficate chain. Can this be the reason of this error. But I thought cert chain is optional .

The format of private key and cert body seems to be correct and is enclosed between

---Begin cert body/privateKey
---End cert body/privateKey

error

What can be the issue here ?

The cert body and the cert private key seems to be ok to me as it clearly shows me the name,expiry date etc once I paste the contents into the respective fields (please refer the green content in the attached screenshot.)

like image 858
Naxi Avatar asked Oct 09 '18 13:10

Naxi


1 Answers

Somehow the issue was because of the missing cert chain. Received cert chain from the cert provider and used all 3 (key,cert body & cert chain) while uploading it on ACM and all worked fine.

like image 69
Naxi Avatar answered Nov 15 '22 05:11

Naxi