From b67543f81ce5ffd9e6bd141e010a2ee58c44f357 Mon Sep 17 00:00:00 2001 From: xenolf Date: Wed, 28 Oct 2015 16:35:19 +0100 Subject: [PATCH] Track the latest lego OCSP changes --- caddy/letsencrypt/letsencrypt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caddy/letsencrypt/letsencrypt.go b/caddy/letsencrypt/letsencrypt.go index ca9a1b89..8037985a 100644 --- a/caddy/letsencrypt/letsencrypt.go +++ b/caddy/letsencrypt/letsencrypt.go @@ -241,8 +241,8 @@ func autoConfigure(cfg *server.Config, allConfigs []server.Config) []server.Conf bundleBytes, err := ioutil.ReadFile(storage.SiteCertFile(cfg.Host)) // TODO: Handle these errors better if err == nil { - ocsp, err := acme.GetOCSPForCert(bundleBytes) - if err == nil { + ocsp, status, err := acme.GetOCSPForCert(bundleBytes) + if err == nil && status == acme.OCSPGood { cfg.TLS.OCSPStaple = ocsp } }