amazon-web-servicesssl-certificatecertificatekeyaws-certificate-manager

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


I have got a certificate containing those 4 files and I want to import this certificate to aws,First I converted the key using this command

openssl rsa -in FILENAME.key -out FILENAME.key.rsa

And then I copy past the content of the cer file and the key to aws but it shows this error

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

Solution

  • Solved by adding this (the p7b file)

    -----BEGIN CERTIFICATE-----
    [certificate chain data]
    -----END CERTIFICATE----
    

    and then

    openssl pkcs7 -in cert.p7b -print_certs -out out.certs