summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-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) },
}
}