In case you need an easy way to generate SSL certificates for localhost, mkcert is the way to go.

mkcert is a simple tool for making locally-trusted development certificates. It requires no configuration.

$ mkcert -install
Created a new local CA 💥
The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊

$ mkcert "*" example.test localhost ::1

Created a new certificate valid for the following names 📜
 - ""
 - "*"
 - "example.test"
 - "localhost"
 - ""
 - "::1"

The certificate is at "./" and the key at "./" ✅

Thanks Filippo Valsorda for this great utility.

Related Posts

  • Nginx Ingress with Let's Encrypt on Kubernetes
  • Getting the real IP address in Kubernetes
  • Checking websockets with cURL