LinuxCommandLibrary

mkcert

creates locally-trusted certificates

TLDR

Install local CA

$ mkcert -install
copy
Generate certificate
$ mkcert [localhost]
copy
Multiple domains
$ mkcert [localhost] [127.0.0.1] [::1]
copy
Wildcard certificate
$ mkcert [*.local.dev]
copy
Specify output names
$ mkcert -key-file [key.pem] -cert-file [cert.pem] [localhost]
copy
Uninstall CA
$ mkcert -uninstall
copy

SYNOPSIS

mkcert [options] [domains]

DESCRIPTION

mkcert creates locally-trusted certificates. It simplifies HTTPS for development.
The tool installs a local CA and generates trusted certificates. No browser warnings.

PARAMETERS

DOMAINS

Domain names for certificate.
-install
Install local CA.
-uninstall
Uninstall local CA.
-key-file FILE
Key output file.
-cert-file FILE
Certificate output file.
--help
Display help information.

CAVEATS

Development only. Keep root CA secure. Don't share CA key.

HISTORY

mkcert was created by Filippo Valsorda to simplify local HTTPS development with trusted certificates.

SEE ALSO

openssl(1), certbot(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community