mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-13 16:31:41 +08:00
Tone down the uninstalled root warnings
Some people might want to use mkcert to generate certificates without installing the root after all. Fixes #290
This commit is contained in:
8
main.go
8
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 ⚠️")
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user