I am trying to add HTTPS connection to the server API I have in elastic beanstalk, using CloudFlare as DNS. Steps I have followed:
- Go to AWS certificate manager and create a certificate for *.nameofmydomain.com
- Verified the certificate
- Created a listener in elastic beanstalk loader section, port 443 and the previously created certificate
- Created a CNAME record in cloudflare that points api.nameofmydomain.com to the elastic beanstalk (xxxxx.yyyyy.eu-west-1.elasticbeanstalk.com)
When I open the https://xxxxx.yyyyy.eu-west-1.elasticbeanstalk.com I get the following error

