summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-04-01 12:49:51 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2021-04-01 12:49:51 -0600
commitd21e88ae3a9d8d57c4d41c1c7c76c6a15f539898 (patch)
treef49a32bc328dff34df7ba139563f18571c8e5fd4
parenta0a7c60cb9e2305f9291fbff2779936b85aacaa7 (diff)
Minor tweaks
-rw-r--r--modules/caddypki/ca.go4
-rw-r--r--modules/caddytls/pemloader.go2
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddypki/ca.go b/modules/caddypki/ca.go
index 957f076..e3102fb 100644
--- a/modules/caddypki/ca.go
+++ b/modules/caddypki/ca.go
@@ -51,10 +51,10 @@ type CA struct {
// and Mozilla Firefox trust stores. Default: true.
InstallTrust *bool `json:"install_trust,omitempty"`
- // The root certificate to use; if empty, one will be generated.
+ // The root certificate to use; if null, one will be generated.
Root *KeyPair `json:"root,omitempty"`
- // The intermediate (signing) certificate; if empty, one will be generated.
+ // The intermediate (signing) certificate; if null, one will be generated.
Intermediate *KeyPair `json:"intermediate,omitempty"`
// Optionally configure a separate storage module associated with this
diff --git a/modules/caddytls/pemloader.go b/modules/caddytls/pemloader.go
index bd95781..61b0885 100644
--- a/modules/caddytls/pemloader.go
+++ b/modules/caddytls/pemloader.go
@@ -34,7 +34,7 @@ type PEMLoader []CertKeyPEMPair
func (PEMLoader) CaddyModule() caddy.ModuleInfo {
return caddy.ModuleInfo{
ID: "tls.certificates.load_pem",
- New: func() caddy.Module { return PEMLoader{} },
+ New: func() caddy.Module { return new(PEMLoader) },
}
}