From fee5960c26b663fddc2fab4633b74ff52cf06e64 Mon Sep 17 00:00:00 2001 From: LordNoteworthy Date: Wed, 30 Oct 2024 21:42:42 +1100 Subject: [PATCH] print log --- security.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security.go b/security.go index bf1326b..4afc8d8 100644 --- a/security.go +++ b/security.go @@ -386,7 +386,9 @@ func (pe *File) parseSecurityDirectory(rva, size uint32) error { // Verify the signature. This will also verify the chain of trust of the // the end-entity signer cert to one of the root in the trust store. - if err == nil { + if err != nil { + pe.logger.Errorf("failed to loadSystemRoots: %v", err) + } else { err = pkcs.VerifyWithChain(certPool) if err == nil { certValid = true