title: Cannot make HTTPS work between CloudFront and Elastic BeanStalk
body: <p>I am trying to setup HTTPS across my app which consists in a frontend (S3 bucket distributed with CloudFront), and a backend (node.js app inside Elastic Beanstalk).</p>
  
  <p>For the CloudFront part, I created an SSL certificate in N. Virginia (apparently I don't have a choice here) and I made the binding in the CloudFront distribution. It works and my app is served over HTTPS.</p>
  
  <p>For the Elastic Beanstalk part, I created an SSL certificate in Ireland (where my EBS app is hosted) and I bound this certificate to the EBS load balancer using the port 443. It works and I can reach my server with HTTPS using Postman.</p>
  
  <p>However, when my frontend tries to make an API call to the backend I get this error :<a href="https://i.stack.imgur.com/IZRtG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IZRtG.png" alt="enter image description here"></a></p>
  
  <p>I guess I made a mistake while creating the certificates, but I cannot find it. I gave both certificates the same set of CNAMES, I am not sure if I am supposed to do that.</p>
  
  <p><strong>EDIT :</strong> </p>
  
  <p>I get the exact same error after updating the frontend so that it points the DName of the load balancer (also mapped to subdomain with Route 53).</p>
  
  <p><a href="https://i.stack.imgur.com/h1SKL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h1SKL.png" alt="enter image description here"></a></p>