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(); }
public XmlTester() { _certificate = CertCreator.GenerateX509Certificate("For Testing"); }