Documentation ¶
Overview ¶
Command mkcert is a simple zero-config tool to make development certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( FirefoxProfiles = []string{os.Getenv("HOME") + "/.mozilla/firefox/*", os.Getenv("HOME") + "/snap/firefox/common/.mozilla/firefox/*"} NSSBrowsers = "Firefox and/or Chrome/Chromium" SystemTrustFilename string SystemTrustCommand []string CertutilInstallHelp string )
var Print = false
Print controls whether or not log messages should be printed.
As `mkcert` is originally a cli-based tool, there are verbose print statements littered throughout. For library usage, we want to silence them by default, but it may be useful to re-enable under some conditions.
var Version string
Version can be set at link time to override debug.BuildInfo.Main.Version, which is "(devel)" when building from within the module. See golang.org/issue/29814 and golang.org/issue/29228.
Functions ¶
Types ¶
type MkcertLib ¶
type MkcertLib struct {
// contains filtered or unexported fields
}
func NewLib ¶
NewLib initializes a new instance of MkcertLib. It will automatically initialize a new CA, as needed, however it will *not* install it in the system.
Since output is silenced by default, in order to troubleshoot errors while creating a new CA or loading an existing one, it may be useful to run twice if an error is returned, like so:
ml, err := truststore.NewLib()
if err != nil { truststore.Print = true truststore.NewLib() // handle err... }