From d1171af6792437a258c16b975678b3da6a5fca5e Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 11 Dec 2018 19:37:08 -0700 Subject: [PATCH] httpserver: Don't obtain certs for unmanaged configs (fixes #2387) --- caddyhttp/httpserver/https.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/caddyhttp/httpserver/https.go b/caddyhttp/httpserver/https.go index 651f946e..24b18b8a 100644 --- a/caddyhttp/httpserver/https.go +++ b/caddyhttp/httpserver/https.go @@ -38,6 +38,9 @@ func activateHTTPS(cctx caddy.Context) error { // place certificates and keys on disk for _, c := range ctx.siteConfigs { + if !c.TLS.Managed { + continue + } if c.TLS.Manager.OnDemand != nil { continue // obtain these certificates on-demand instead }