From 0bfd83cea26eec7a633fbd4c80db9f258b2679df Mon Sep 17 00:00:00 2001 From: Filippo Valsorda <1225294+FiloSottile@users.noreply.github.com> Date: Sat, 24 Aug 2019 13:38:12 -0400 Subject: [PATCH] README: add "go run" quickstart --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index d0e0adb..dab1aab 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,16 @@ Using certificates from real certificate authorities (CAs) for development can b mkcert automatically creates and installs a local CA in the system root store, and generates locally-trusted certificates. mkcert does not automatically configure servers to use the certificates, though, that's up to you. +## Quickstart + +If you have Go 1.12+ just run the following command to get a valid certificate for `example.com` and its subdomains. + +``` +go run github.com/FiloSottile/mkcert -install example.com "*.example.com" +``` + +Otherwise, the installation instructions below don't require Go. + ## Installation > **Warning**: the `rootCA-key.pem` file that mkcert automatically generates gives complete power to intercept secure requests from your machine. Do not share it.