summaryrefslogtreecommitdiff
path: root/modules/caddypki/maintain.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2021-02-02 17:23:52 -0700
committerMatthew Holt <mholt@users.noreply.github.com>2021-02-02 17:23:52 -0700
commitbf50d7010a26468791f4397c0f0c4f9a8ed1d6a2 (patch)
tree6956ee718cea0976e2fe23e5867010655cb2df0f /modules/caddypki/maintain.go
parent8ec90f1c402b5e1aa1eea59e45f700aeb45da6ba (diff)
acmeserver: Support custom CAs from Caddyfile
The HTTP Caddyfile adapter can now configure the PKI app, and the acme_server directive can now be used to specify a custom CA used for issuing certificates. More customization options can follow later as needed.
Diffstat (limited to 'modules/caddypki/maintain.go')
-rw-r--r--modules/caddypki/maintain.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddypki/maintain.go b/modules/caddypki/maintain.go
index c0b277d..31e453f 100644
--- a/modules/caddypki/maintain.go
+++ b/modules/caddypki/maintain.go
@@ -50,7 +50,7 @@ func (p *PKI) renewCerts() {
if err != nil {
p.log.Error("renewing intermediate certificates",
zap.Error(err),
- zap.String("ca", ca.id))
+ zap.String("ca", ca.ID))
}
}
}
@@ -59,7 +59,7 @@ func (p *PKI) renewCertsForCA(ca *CA) error {
ca.mu.Lock()
defer ca.mu.Unlock()
- log := p.log.With(zap.String("ca", ca.id))
+ log := p.log.With(zap.String("ca", ca.ID))
// only maintain the root if it's not manually provided in the config
if ca.Root == nil {