Rahul Sharma
Rahul Sharma

Reputation: 358

Getting net::ERR_CERT_COMMON_NAME_INVALID when accessing AWS ALB

I am trying to access my AWS Application Load Balancer(ALB) but I am getting a net::ERR_CERT_COMMON_NAME_INVALID instead.

Current Scenario:

I would be more than happy to provide any further details required to support my query.

Thanks in advance.

Upvotes: 1

Views: 2137

Answers (1)

Chris Williams
Chris Williams

Reputation: 35248

This comes down to one of the following scenarios:

  • The SSL certificate attached to the load balancer does not include the domain you're expecting it to. For wildcards remember that *.example.com will only cover a single level subdomain such as www.example.com not secondary levels such as beta.www.example.com.
  • The domain you're accessing with the browser is not supported on the SSL, you need to ensure the SSL is valid for that domain only (if it redirects to another domain or you're trying to access via the load balancer domain name it will not be valid).

You should be able to get some more information about the error by running the below.

curl -i -v https://example.com

Upvotes: 4

Related Questions