コード例 #1
0
ファイル: simpleCATest.cs プロジェクト: hugocurran/OSCA2
        public void simpleCAConstructorTest()
        {
            simpleCA ca = new simpleCA(CaTestHarness.testCAConfigFile, "foobar");

            Assert.IsFalse(ca.FIPS140Mode);
            //Assert.AreEqual("RootCA", ca.CAType);
            Assert.AreEqual("SHA1withRSA", ca.SignatureAlgorithm);
        }
コード例 #2
0
ファイル: simpleCATest.cs プロジェクト: hugocurran/OSCA2
 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);
     }
 }
コード例 #3
0
ファイル: simpleCATest.cs プロジェクト: hugocurran/OSCA2
 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);
     }
 }