Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…-validator into fb-caddyfile
  • Loading branch information
gr33nbl00d committed Feb 14, 2024
2 parents 3735a49 + aaf1335 commit 1619a18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crl/crlrepository/crlrepository.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1619a18

Please sign in to comment.