Explorar el Código

Add cache duration if crl is set

Mariano Cano hace 4 años
padre
commit
4e19aa4c52
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      authority/config/config.go

+ 1 - 1
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()