Local HTTPS testing usually ends with a self-signed certificate and a click through a scary warning page. mkcert skips the warning by making its own small CA that your machine trusts.
mkcert -install
mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1
The first command creates a local certificate authority and adds it to the trust stores. The README lists the macOS and Windows system stores, plus Firefox (macOS and Linux only), Chrome, Chromium and Java when JAVA_HOME is set. The second command makes a certificate for all the names you list. In the README’s example with six names, the files are ./example.com+5.pem and ./example.com+5-key.pem.
If you want fixed file names, for a config you check in, there are options for that:
mkcert -cert-file dev.pem -key-file dev-key.pem localhost 127.0.0.1 ::1
There are also -ecdsa for an ECDSA key and -client for a client authentication certificate.
Two caveats from the README. mkcert is meant for development, not production, and it should not be used on end users’ machines. And the CA key, rootCA-key.pem, gives complete power to intercept secure requests from your machine, so it should never be exported or shared. For a public site, use a real CA, for example through Certbot.
Further reading: mkcert on GitHub
Going deeper: Run degoog on Unraid as your own search page, compared with SearXNG and 4get