forked from TrueCloudLab/certificates
Start crl generator before setting initOnce
This commit is contained in:
parent
59775fff0c
commit
812fee7630
1 changed files with 6 additions and 6 deletions
|
@ -716,12 +716,6 @@ func (a *Authority) init() error {
|
||||||
a.templates.Data["Step"] = tmplVars
|
a.templates.Data["Step"] = tmplVars
|
||||||
}
|
}
|
||||||
|
|
||||||
// JWT numeric dates are seconds.
|
|
||||||
a.startTime = time.Now().Truncate(time.Second)
|
|
||||||
// Set flag indicating that initialization has been completed, and should
|
|
||||||
// not be repeated.
|
|
||||||
a.initOnce = true
|
|
||||||
|
|
||||||
// Start the CRL generator, we can assume the configuration is validated.
|
// Start the CRL generator, we can assume the configuration is validated.
|
||||||
if a.config.CRL.IsEnabled() {
|
if a.config.CRL.IsEnabled() {
|
||||||
// Default cache duration to the default one
|
// Default cache duration to the default one
|
||||||
|
@ -734,6 +728,12 @@ func (a *Authority) init() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// JWT numeric dates are seconds.
|
||||||
|
a.startTime = time.Now().Truncate(time.Second)
|
||||||
|
// Set flag indicating that initialization has been completed, and should
|
||||||
|
// not be repeated.
|
||||||
|
a.initOnce = true
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue