From 812fee76308c716da57e00d12534fa17d8a9aef2 Mon Sep 17 00:00:00 2001 From: Mariano Cano Date: Thu, 27 Oct 2022 11:38:30 -0700 Subject: [PATCH] Start crl generator before setting initOnce --- authority/authority.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/authority/authority.go b/authority/authority.go index deebdaa9..3fb6f51f 100644 --- a/authority/authority.go +++ b/authority/authority.go @@ -716,12 +716,6 @@ func (a *Authority) init() error { 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. if a.config.CRL.IsEnabled() { // 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 }