Eroji
Eroji

Reputation: 359

Wildcard cert installed in Apache but subdomain fails browser check

I have an apache instance running with my domain's wildcard cert (ie *.mydomain.com) installed and when I surf to the URL site.mydomain.com, cert passes browser check without any issue.

Now I created a subdomain in DNS, lab.mydomain.com and created a record for the same server to be site.lab.mydomain.com. The cert did not change at all, however, now browser is complaining. Below is the Chrome error.

Certificate Error
There are issues with the site's certificate chain (net::ERR_CERT_COMMON_NAME_INVALID).

What exactly did I miss or misunderstand?

Upvotes: 0

Views: 810

Answers (1)

Steffen Ullrich
Steffen Ullrich

Reputation: 123260

site.lab.mydomain.com does not match the certificate for *.mydomain.com. A wildcard matches only a single label, i.e. *.lab.mydomain.com would be needed instead.

Upvotes: 1

Related Questions