I've created a self-signed certificate via openssl for *.mydomain.com, and it works e.g. for www.mydomain.com. However, when I go to mydomain.com directly in Chrome, I get an error (
You are attempting to reach mydomain.com, but instead you actually reached a server identifying itself as *.mydomain.com).
Should the *. certificate cover the main domain as well? What should I do to resolve?