Trust a private root certificate before verifying¶
123456
// Base64 content and password of a PFX file that contains the root certificatevarroot=$Crypto.GetCertificate($Files.GetBase64($Xml.Evaluate('RootCertificateFile')),'')[0];$Crypto.AddTrustedCertificate(root);varresult=$Crypto.VerifyFile($Xml.Evaluate('SignedFile'));$Xml.SetValue('SignatureValid',result.AllValid);