From aaf133569b2d0e7b3130827e7b1b4362a975fbd7 Mon Sep 17 00:00:00 2001 From: gr33nbl00d Date: Wed, 14 Feb 2024 12:10:36 +0100 Subject: [PATCH] added debug output in case a crl gets loaded --- crl/crlrepository/crlrepository.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/crl/crlrepository/crlrepository.go b/crl/crlrepository/crlrepository.go index 22d7a7d..189ca67 100644 --- a/crl/crlrepository/crlrepository.go +++ b/crl/crlrepository/crlrepository.go @@ -126,6 +126,7 @@ func (R *Repository) tryUpdateSignatureCertFromChain(entry *Entry, chains *core. } func (R *Repository) loadCRL(entry *Entry, chains *core.CertificateChains) (err error) { + R.logger.Debug("loading crl", zap.String("crl", entry.CRLLoader.GetDescription())) tempFileName, err := R.createTempFile() if err != nil { return err @@ -148,10 +149,12 @@ func (R *Repository) loadCRL(entry *Entry, chains *core.CertificateChains) (err return err } } else { + R.logger.Debug("signature of crl validated successfully", zap.String("crl", entry.CRLLoader.GetDescription())) err = processor.UpdateSignatureCertificate(signatureCert) if err != nil { return err } + R.logger.Debug("crl loaded successfully", zap.String("crl", entry.CRLLoader.GetDescription())) } } entry.Loaded = true