MKCERT(1)
β¨ MKCERT(1) β¨
okay bestie, so this is the User Commands girlies, and we're talking about mkcert β the zero-config tool to make locally trusted certificates. no config files, no crying, no cap. π
π NAME π
mkcert β zero-config tool to make locally trusted certificates
like literally that's it, that's the whole vibe. she makes certs that your machine actually trusts. π¦
πΈ DESCRIPTION πΈ
okay so here's how you use mkcert, step by step, no gatekeeping:
$ mkcert -install
Install the local CA in the system trust store. π
$ mkcert example.org
Generate "example.org.pem" and "example.org-key.pem". β¨
$ mkcert example.com myapp.dev localhost 127.0.0.1 ::1
Generate "example.com+4.pem" and "example.com+4-key.pem". π₯ (yes, she counts for you, it's giving main character energy)
$ mkcert "*.example.it"
Generate "_wildcard.example.it.pem" and "_wildcard.example.it-key.pem". π
$ mkcert -uninstall
Uninstall the local CA (but do not delete it). π«Ά so like, she's gone but she's not gone gone, yk?
π Advanced options π
not me dropping the advanced stuff like it's nothing. obsessed. π
-cert-file FILE,-key-file FILE,-p12-file FILEβ Customize the output paths. like you get to pick where the files go, it's your world bestie π-clientβ Generate a certificate for client authentication.-ecdsaβ Generate a certificate with an ECDSA key.-pkcs12β Generate a".p12"PKCS #12 file, also know as a".pfx"file, containing certificate and key for legacy applications. (yes the manpage really says "know as", we don't fix that, we respect her π)-csr CSRβ Generate a certificate based on the supplied CSR. Conflicts with all other flags and arguments except-installand-cert-file. so do NOT mix her with the other girlies, she's picky fr fr π-CAROOTβ Print the CA certificate and key storage location.$CAROOT(environment variable) β Set the CA certificate and key storage location. (This allows maintaining multiple local CAs in parallel.) lowkey iconic, you can run a whole friend group of CAs π§$TRUST_STORES(environment variable) β A comma-separated list of trust stores to install the local root CA into. Options are:"system","java"and"nss"(includes Firefox). Autodetected by default. πΈ
π SEE ALSO π
The full documentation for mkcert is maintained as a Texinfo manual. If the info and mkcert programs are properly installed at your site, the command
info mkcert
should give you access to the complete manual. go read it, iykyk πβ¨
okay that's the whole page, mwah π this one's from mkcert, November 2021, and it lives in section 1 of the manual. slay, periodt, go make some certs bestie ππ¦
π¦ where this page comes from
- debian bookworm: mkcert 1.4.4-1+b6 Β· BSD-3-Clause
- debian trixie: mkcert 1.4.4-1+b18 Β· BSD-3-Clause
- ubuntu jammy: mkcert 1.4.3-1 Β· BSD-3-Clause
- ubuntu jammy: mkcert 1.4.3-1ubuntu0.3 Β· BSD-3-Clause
- ubuntu noble: mkcert 1.4.4-1ubuntu2 Β· BSD-3-Clause
- ubuntu noble: mkcert 1.4.4-1ubuntu3.2 Β· BSD-3-Clause
- ubuntu resolute: mkcert 1.4.4-1ubuntu2 Β· BSD-3-Clause
- ubuntu stonking: mkcert 1.4.4-1ubuntu2 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms