I'm trying to import my certificate from (DigiCert) to AWS. Where I following the instruction from AWS (link) to convert my pfx to pem format.
But I get empty file when I use the command
openssl pkcs12 -in website.xyz.com.pfx -cacerts -nokeys -chain -out ca-chain.pem
to extract CA chain from pfx file. I just get an empty ca-chain.pem
file.
When I try to import the certificate into ACM in AWS the shows the error Provided certificate is not a valid self signed. Please provide either a valid self-signed certificate or certificate chain.
According to the AWS article we need certificate chain to import non-AWScertificate.
How can I get my certificate chain correctly?
My OpenSSL version is OpenSSL 1.1.1m 14 Dec 2021