I am trying to tướng add certificate listner against a certificate using following code

                const listenerBody = {
                Certificates: [
                    {
                        CertificateArn: certificate.certificate_arn
                    },
                ],
                ListenerArn: httpsListnerArn
            }
elbv2.addListenerCertificates(listenerBody, async function (err, data) {}

But I am getting following error

UnsupportedCertificate: The certificate 'arn:aws:acm:us-west-2:557863456534:certificate/7accec1c-57df-4c6f-a5c5-3f76b1fa9f92' must have a fully-qualified domain name, a supported signature, and a supported key size.

asked May 13, 2022 at 10:06

Error messages can be a bit misleading at times. You may receive this error if the certificate is still pending validation. If the certificate was recently added to tướng AWS Certificate Manager, make sure that it has been validated. Certificates will not be available for use unless you are able to tướng validate that you own or control the domain(s). You can validate ownership using gmail or DNS.

answered May 27, 2022 at 6:30

In my case, it was the timing after cert creation and validation. I needed to tướng sleep about trăng tròn seconds for the process to tướng go smoothly. I slept 10 seconds for starters, only worked when I waited trăng tròn, so sánh somewhere between 10-20 seconds the Cert becomes detectable on the LBs.

4b0

22.3k30 gold badges96 silver badges142 bronze badges

answered Jul 26, 2022 at 16:57

2