public void Verify(string[] args) { string path = args.GetRequiredValue(0); X509Certificate2 cert = new X509Certificate2(path); X509Certificate2Collection anchors = SystemX509Store.OpenAnchor().GetAllCertificates(); TrustChainValidator validator = new TrustChainValidator(); validator.IsTrustedCertificate(cert, anchors); }