BrowseSecurity & networking tools
mkcert
Command-line tool that creates a local certificate authority, installs it in system and browser trust stores, and generates locally trusted development certificates.
Tested on LinuxKnown vulnerabilities
Use it
Before you install: known vulnerabilities
pickfit found 17 known high or critical vulnerabilities in the packages a fresh install brings (OSV.dev, 16 Nov 2026). Weigh this before you install it.
go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29golang.org/x/crypto vulnerable to auth bypass via unenforced @revoked status (GHSA-5cgq-3rg8-m6cv, critical, fixed in 0.52.0)
See 9 more
go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-89gr-r52h-f8rx (critical), fixed in 0.52.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-f5wc-c3c7-36mc (critical), fixed in 0.52.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-jppx-rxg9-jmrx (critical), fixed in 0.52.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-rm3j-f69w-wqmq (critical), fixed in 0.52.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-v778-237x-gjrc (critical), fixed in 0.31.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-vgwf-h737-ff37 (critical), fixed in 0.52.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-x527-x647-q7gg (critical), fixed in 0.52.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-hcg3-q754-cr77 (high), fixed in 0.35.0go:golang.org/x/crypto v0.0.0-20220331220935-ae2d96664a29— GHSA-q4h4-gmj2-qvw2 (high), fixed in 0.52.0
7 more findings not listed here.
Linux x86_64
You need first
- Runtimes:
go>=1.13 (build from source only) - System packages:
certutil (libnss3-tools / nss-tools / nss) on Linux,nss on macOS for Firefox
Download the prebuilt linux/amd64 binary, chmod +x it and copy it to ~/.local/bin/mkcert
curl -fJLO "https://dl.filippo.io/mkcert/latest?for=linux/amd64" && chmod +x mkcert-v*-linux-amd64 && mkdir -p ~/.local/bin && cp mkcert-v*-linux-amd64 ~/.local/bin/mkcert
Check that it works
mkcert -versionThe output should contain “v1.4.4”.
First thing to try
mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1Run mkcert <name> with the domains or IPs you want a certificate for, such as mkcert localhost 127.0.0.1.
What it does
- Create certificates for several names, wildcards and IPsTested
How to use it
- Run
mkcert <domain> "*.<domain>" localhost 127.0.0.1 ::1with the names and IPs you need. - Find the new certificate and key files in the current folder.
- Run
- Create client, ECDSA or PKCS #12 certificatesTested
How to use it
- Run
mkcert -client -ecdsa -pkcs12 <domain>. - Find the PKCS #12 bundle at
./<domain>-client.p12.
- Run
- Sign a certificate from your own CSRTested
How to use it
- Create a certificate signing request file, for example with openssl.
- Run
mkcert -csr <file>. - Find the signed certificate in the current folder.
- Install a local CA into system and browser trust storesNot tested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 3 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- serve localhost over HTTPS without browser trust errors
- generate an S/MIME certificate for an email address
- make Node.js trust local development certificates
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 15 Nov 2026
- Version v1.4.4
Differences the test machine hit
- README: sudo cp mkcert-v*-linux-amd64 /usr/local/bin/mkcert
In the test: Copied the binary to ~/.local/bin/mkcert instead, because the box has no sudo - README: On Linux, first install certutil (sudo apt install libnss3-tools)
In the test: Not needed to make certificates. certutil is only used by -install for the NSS/Firefox store, and it could not be installed here without root