Ejemplo n.º 1
0
 public void CanLoadFromPKCS7_PEM()
 {
     using (BIO bio = new BIO(LoadString(Resources.CaChainP7cPem))) {
         using (X509Certificate cert = X509Certificate.FromPKCS7_PEM(bio)) {
             TestCert(cert, "CN=Root", "CN=Root", 1234);
         }
     }
 }
 public void CanLoadFromPKCS7_PEM()
 {
     using (BIO bio = BIO.File(Paths.CaChainP7cPem, "r"))
     {
         using (X509Certificate cert = X509Certificate.FromPKCS7_PEM(bio))
         {
             TestCert(cert, "CN=Root", "CN=Root", 1234);
         }
     }
 }