Beispiel #1
0
        public void TestCreateCaCertificate()
        {
            var x509 = CertCreator.GenerateCACertificate("For Testing");

            // Add to store
            x509.FriendlyName = "ah-root-CA";
            CertCreator.AddCertToStore(x509, StoreName.Root, StoreLocation.CurrentUser);

            x509.HasPrivateKey.Should().BeTrue();
        }
Beispiel #2
0
 public XmlTester()
 {
     _certificate = CertCreator.GenerateX509Certificate("For Testing");
 }