mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-22 10:25:46 +03:00
Track the latest lego OCSP changes
This commit is contained in:
parent
7d91cfb512
commit
b67543f81c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue