For local testing of sites, I need them to open over HTTPS on local Apache.
The problem is that for each new site you have to generate your certificate, connect it and import it into Chrome so that it considers the certificate trusted.
I want to create one wildcard certificate (for example, * .loc - for all sites like site1.loc, site2.loc, etc.), add it once in Chrome and then simply specify this certificate for all sites in local Apache.
I created the usual self-signed certificate, specified "* .loc" in CN. I imported it into Chrome by this instruction . But when I go to https://site.loc , Chrome writes "NET :: ERR_CERT_COMMON_NAME_INVALID". With the usual self-signed certificates like "site.loc" everything works fine, the problem is only with a wildcard.
What am I doing wrong? Maybe you need to create a certificate in some other way or import it into Chrome in a different way?