File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 35
35
// DefaultEnableSSHCA enable SSH CA features per provisioner or globally
36
36
// for all provisioners.
37
37
DefaultEnableSSHCA = false
38
+ // DefaultCRLCacheDuration is the default cache duration for the CRL.
39
+ DefaultCRLCacheDuration = & provisioner.Duration {Duration : 24 * time .Hour }
38
40
// GlobalProvisionerClaims default claims for the Authority. Can be overridden
39
41
// by provisioner specific claims.
40
42
GlobalProvisionerClaims = provisioner.Claims {
@@ -190,6 +192,9 @@ func (c *Config) Init() {
190
192
if c .CommonName == "" {
191
193
c .CommonName = "Step Online CA"
192
194
}
195
+ if c .CRL != nil && c .CRL .Generate && c .CRL .CacheDuration == nil {
196
+ c .CRL .CacheDuration = DefaultCRLCacheDuration
197
+ }
193
198
c .AuthorityConfig .init ()
194
199
}
195
200
You can’t perform that action at this time.
0 commit comments