From 1ad7f56df4420a9e4295f5dfc0ea1c5e814eeadb Mon Sep 17 00:00:00 2001 From: Filippo Valsorda Date: Sun, 25 Oct 2020 18:33:54 +0100 Subject: [PATCH] Tone down the uninstalled root warnings Some people might want to use mkcert to generate certificates without installing the root after all. Fixes #290 --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 23be39e..ffd419c 100644 --- a/main.go +++ b/main.go @@ -184,18 +184,18 @@ func (m *mkcert) Run(args []string) { var warning bool if storeEnabled("system") && !m.checkPlatform() { warning = true - log.Println("Warning: the local CA is not installed in the system trust store! ⚠️") + log.Println("Note: the local CA is not installed in the system trust store.") } if storeEnabled("nss") && hasNSS && CertutilInstallHelp != "" && !m.checkNSS() { warning = true - log.Printf("Warning: the local CA is not installed in the %s trust store! ⚠️", NSSBrowsers) + log.Printf("Note: the local CA is not installed in the %s trust store.", NSSBrowsers) } if storeEnabled("java") && hasJava && !m.checkJava() { warning = true - log.Println("Warning: the local CA is not installed in the Java trust store! ⚠️") + log.Println("Note: the local CA is not installed in the Java trust store.") } if warning { - log.Println("Run \"mkcert -install\" to avoid verification errors ‼️") + log.Println("Run \"mkcert -install\" for certificates to be trusted automatically ⚠️") } }