mkcert example.com '*.example.com'

Category: Web App Development

mkcert example.com '*.example.com'

Issue a cert with a wildcard domain

Creates a certificate covering example.com and any subdomain, matching how production wildcard certs behave. Quote the wildcard so the shell does not expand it. Great for testing cookie scoping and multi-subdomain setups locally.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.