talira

A simple zero-config tool to make locally trusted development certificates with any names you'd like.

open sourceBSD-3-Clauseself-hostablefree

mkcert creates a local certificate authority, installs it in the system root store (and Firefox, Java and others), and generates locally trusted certificates for names like localhost, 127.0.0.1 or example.test. It removes browser trust warnings for local HTTPS without handling a CA by hand. It does not configure servers itself.

Ways to install

Problems it solves

  • my browser shows a scary certificate warning on my local HTTPS dev server
  • need https://localhost for a feature that requires a secure context
  • self-signed certificates keep getting rejected by my tools
  • generate a trusted cert for a custom local domain like myapp.test
  • testing service workers or OAuth locally requires HTTPS
  • making my own CA with openssl commands is arcane
  • trusted local certificates on Mac, Linux and Windows
  • local HTTPS for a mobile device on my network

Features

  • local CA install
  • system and Firefox trust stores
  • any hostnames and IPs
  • zero config

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what mkcert does.

  1. step CLI An easy-to-use CLI tool for building, operating, and automating Public Key Infrastructure (PKI) systems and workflows
  2. step-ca A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management
  3. Caddy The Ultimate Server with Automatic HTTPS

Compare mkcert with the top 3