I have an Angular - Spring Boot App. In the backend(Spring Boot App) was able to use AWS canned SSL cert("example.com") on an AWS load balancer that listens for incoming https traffic on 443 port. On the other hand in the frontend(Angular app) I have a S3 site that uses the same SSL cert("example.com").
When I go to https://example.com my site loads fine and shows the https security green tag by the url (The frontend use also uses a SSL cert("example.com")).
However, when my frontend go to my load balancer's address, which looks like:
https://load-balancer-xxxxxx.us-east-1.elb.amazonaws.com
In other words, when my frontend makes petitions to backend, I get the following error:
net::ERR_CERT_COMMON_NAME_INVALID
Then is the error due to the fact that the certified url for my site does not contain the domain *.amazonaws.com ?, if this is the cause. How to prevent the browser says ERR_CERT_COMMON_NAME_INVALID? If necessarily the frontend will make requests from https://example to https://load-balancer-xxxxxx.us-east-1.elb.amazonaws.com
That is my DNS Configuration:
Note: I have installed a Single Domain SSL certificate.