BASE

mkcert

mkcert

Developer CLI · Free

Creates certificates for local development and a local certificate authority, helping test HTTPS workflows on your own development domains.

Also known as: filosottile/mkcert; mkcert-tool; mkcert-dev-certificates

Resource illustration: mkcert

Open resource ↗

What you can use for free

Code and local use under BSD-3-Clause.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under BSD-3-Clause. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Test a local application over HTTPS
  • Prepare a certificate and connect it to your development server

Example workflow

A possible workflow; this is not a report of hands-on testing.

Test a local application over HTTPS.

Before you start

  • Project files or environment.
  • A shell and supported platform.

Steps

  1. Define development hostnames and local trust requirements.
  2. Prepare a certificate and connect it to your development server.
  3. Save the working command or script and the result criteria.

Check your result

  • The command correctly handles paths, Unicode, and invalid inputs.
  • Repeat runs behave predictably; credentials do not appear in the output.

Choosing mkcert

Test a local application over HTTPS

Choose this when

  • Test a local application over HTTPS
  • Prepare a certificate and connect it to your development server

Requirements

  • Configure the server certificate/key and trust for the required client; a public CA certificate and CA private key have different roles.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: BSD-3-Clause for the code, with notice retention and a prohibition on endorsement.
  • mkcert is intended for development; the README advises against production use or installation on end-user machines.

Frequently asked questions

What can you use for free in mkcert?

Code and local use under BSD-3-Clause.

What additional costs might arise with mkcert?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for mkcert?

BSD-3-Clause for the code, with notice retention and a prohibition on endorsement.

How do you get started with mkcert?

Define development hostnames and local trust requirements. Prepare a certificate and connect it to your development server. Save the working command or script and the result criteria.

Why does an mkcert certificate not automatically make every client trust HTTPS?

mkcert creates a local CA and certificates, but the web server is configured separately. Choose trust stores through TRUST_STORES; Node.js does not use system roots automatically and requires NODE_EXTRA_CA_CERTS. On a mobile device, install the public rootCA.pem; for an Android development app, enable user roots. Do not share rootCA-key.pem: it is a private signing key.

License

BSD-3-Clause for the code, with notice retention and a prohibition on endorsement.

Custom license — this product's terms apply

The license name does not imply standard MIT or GPL rights. Its own text determines permission to modify, work commercially, distribute, and use outputs. Follow the use case stated for the product above and the primary source for its terms.

Technologies and topics

  • mkcert
  • CLI
  • Development

Sources

Other resources