From 4e19aa4c52e1ee1db9f981cd3dd0024a3c36102b Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Wed, 14 Sep 2022 12:21:52 -0700 Subject: [PATCH] Add cache duration if crl is set --- authority/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authority/config/config.go b/authority/config/config.go index 86e950cb..7e6922ed 100644 --- a/authority/config/config.go +++ b/authority/config/config.go @@ -192,7 +192,7 @@ func (c *Config) Init() { if c.CommonName == "" { c.CommonName = "Step Online CA" } - if c.CRL != nil && c.CRL.Generate && c.CRL.CacheDuration == nil { + if c.CRL != nil && c.CRL.CacheDuration == nil { c.CRL.CacheDuration = DefaultCRLCacheDuration } c.AuthorityConfig.init()