- Install mkcert (and Firefox support)
brew install mkcert nss - Create your own local certificate authority
mkcert -installAsks for your password once to trust it.
- Make a certificate for localhost
mkcert localhost 127.0.0.1 ::1Creates localhost+2.pem and localhost+2-key.pem in this folder. Point your dev server at those two files.
Undo it
- Remove the local certificate authority
mkcert -uninstall && brew uninstall mkcert
- Install mkcert (and Firefox and Chrome support)Needs sudo
sudo apt install -y mkcert libnss3-tools - Create your own local certificate authority
mkcert -install - Make a certificate for localhost
mkcert localhost 127.0.0.1 ::1Creates localhost+2.pem and localhost+2-key.pem in this folder. Point your dev server at those two files.
Undo it
- Remove the local certificate authority
mkcert -uninstall && sudo apt remove -y mkcert
- Install mkcert
winget install FiloSottile.mkcertClose and reopen PowerShell afterwards.
- Create your own local certificate authority
mkcert -installClick Yes on the security warning to trust it.
- Make a certificate for localhost
mkcert localhost 127.0.0.1 ::1Creates localhost+2.pem and localhost+2-key.pem in this folder. Point your dev server at those two files.
Undo it
- Remove the local certificate authority
mkcert -uninstall; winget uninstall FiloSottile.mkcert

New to HTTPS? I explain it in plain English on Layman Terms.