''Error: Your connection isn't private' when applying ssl certificate to elastic beanstalk

I get an error when applying ssl certificate to my API on AWS elastic beanstalk via Load-balancer, when I start setting up the ssl certificate I enter a domain and I validate it via Email ( this domain doesn't relate to aws or my API on elastic beanstalk). Now I get 'Your connection isn't private, NET::ERR_CERT_COMMON_NAME_INVALID', so I can't open it in the browser without proceeding manually, I also can't connect my front-end(which runs over https) to it, I get the same error in console. Help please thanks.



Solution 1:[1]

I know it’s been a while since this question was posted. But for those who may be facing the issue now, as I was, I solved it by requesting a certificate for *.mydomain.xyz, instead of mydomain.xyz.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Brett Donald