Пример #1
0
 public void CanLoadFromPKCS7_DER()
 {
     using (BIO bio = new BIO(LoadBytes(Resources.CaChainP7c))) {
         using (X509Certificate cert = X509Certificate.FromPKCS7_DER(bio)) {
             TestCert(cert, "CN=Root", "CN=Root", 1234);
         }
     }
 }
 public void CanLoadFromPKCS7_DER()
 {
     using (BIO bio = BIO.File(Paths.CaChainP7c, "r"))
     {
         using (X509Certificate cert = X509Certificate.FromPKCS7_DER(bio))
         {
             TestCert(cert, "CN=Root", "CN=Root", 1234);
         }
     }
 }