I have two hosts set on apache server with signed ssl certs.
Both virtual hosts have correct configuration I believe.
First is sub.domain.com witch is working correctly and browsers don't complain for its cert.
Second domain is level.sub.domain.com and it generating errors,
what I get is ssl_error_bad_cert_domain for
level.sub.domain.com uses an invalid security certificate.
The certificate is only valid for the following names: *.domain.com
, domain.com
Should the *.domain.com certificate support more than one level subdomain?
Best Answer
*.domain.com should only match for domains .domain.com, but not domain.com or a.b.domain.com.
Citing this great presentation: