@ -586,6 +586,10 @@ func (a *Authority) IsAdminAPIEnabled() bool {
// Shutdown safely shuts down any clients, databases, etc. held by the Authority.
func(a*Authority)Shutdown()error{
ifa.crlTicker!=nil{
a.crlTicker.Stop()
}
iferr:=a.keyManager.Close();err!=nil{
log.Printf("error closing the key manager: %v",err)
}
@ -594,6 +598,11 @@ func (a *Authority) Shutdown() error {
// CloseForReload closes internal services, to allow a safe reload.
func(a*Authority)CloseForReload(){
ifa.crlTicker!=nil{
a.crlTicker.Stop()
}
iferr:=a.keyManager.Close();err!=nil{
log.Printf("error closing the key manager: %v",err)
}
@ -655,12 +664,12 @@ func (a *Authority) startCRLGenerator() error {
iftickerDuration<=0{
panic(fmt.Sprintf("ERROR: Addition of jitter to CRL generation time %v creates a negative duration (%v). Use a CRL generation time of longer than 1 minute.",a.config.CRL.CacheDuration,tickerDuration))