public void simpleCAConstructorTest() { simpleCA ca = new simpleCA(CaTestHarness.testCAConfigFile, "foobar"); Assert.IsFalse(ca.FIPS140Mode); //Assert.AreEqual("RootCA", ca.CAType); Assert.AreEqual("SHA1withRSA", ca.SignatureAlgorithm); }
public void simpleCAConstructorTest1() { try { simpleCA ca = new simpleCA(@"c:\foo.xml", "foobar"); } catch (IOException ex) { Assert.AreEqual(@"Could not find file 'c:\foo.xml'.", ex.Message); } }
public void simpleCAConstructorTest2() { try { simpleCA ca = new simpleCA(CaTestHarness.testCAConfigFile, "password"); } catch (IOException ex) { Assert.AreEqual("PKCS12 key store MAC invalid - wrong password or corrupted file.", ex.Message); } }