Exemple #1
0
        public void simpleCAConstructorTest()
        {
            simpleCA ca = new simpleCA(CaTestHarness.testCAConfigFile, "foobar");

            Assert.IsFalse(ca.FIPS140Mode);
            //Assert.AreEqual("RootCA", ca.CAType);
            Assert.AreEqual("SHA1withRSA", ca.SignatureAlgorithm);
        }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 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);
     }
 }