static void Main(String[] args) { LoggerFactory.GetInstance().SetLogger(new SysoLogger()); C5_03_CertificateValidation app = new C5_03_CertificateValidation(); X509CertificateParser parser = new X509CertificateParser(); app.certificates.Add(parser.ReadCertificate(new FileStream(ADOBE, FileMode.Open))); app.certificates.Add(parser.ReadCertificate(new FileStream(CACERT, FileMode.Open))); app.certificates.Add(parser.ReadCertificate(new FileStream(BRUNO, FileMode.Open))); app.VerifySignatures(EXAMPLE1); app.VerifySignatures(EXAMPLE2); app.VerifySignatures(EXAMPLE3); app.VerifySignatures(EXAMPLE4); }
static void Main(String[] args) { LoggerFactory.GetInstance().SetLogger(new SysoLogger()); C5_03_CertificateValidation app = new C5_03_CertificateValidation(); X509CertificateParser parser = new X509CertificateParser(); app.certificates.Add(parser.ReadCertificate(new FileStream(ADOBE, FileMode.Open))); app.certificates.Add(parser.ReadCertificate(new FileStream(CACERT, FileMode.Open))); app.certificates.Add(parser.ReadCertificate(new FileStream(BRUNO, FileMode.Open))); app.VerifySignatures(EXAMPLE1); app.VerifySignatures(EXAMPLE2); app.VerifySignatures(EXAMPLE3); app.VerifySignatures(EXAMPLE4); }