Add cache duration if crl is set

This commit is contained in:
Mariano Cano 2022-09-14 12:21:52 -07:00
parent 221e756f40
commit 4e19aa4c52

View file

@ -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()