Esempio n. 1
0
 def test_create_sub_ca(self):
     """Create a subordinate ca; validate cert with parent ca; return True."""
     sub_ca_name = 'test-sub-ca'
     testsubcn = 'Test Subordinate Authority'
     subca = SpokeCA(sub_ca_name)
     subca.create(testsubcn, self.ca_name)
     cert = SpokeCACert(testsubcn, sub_ca_name, self.ca_name)
     self.assertTrue(cert._verify())
     subca.delete()
Esempio n. 2
0
 def test_create_sub_ca(self):
     """Create a subordinate ca; validate cert with parent ca; return True."""
     sub_ca_name = 'test-sub-ca'
     testsubcn = 'Test Subordinate Authority'
     subca = SpokeCA(sub_ca_name)
     subca.create(testsubcn, self.ca_name)
     cert = SpokeCACert(testsubcn, sub_ca_name, self.ca_name)
     self.assertTrue(cert._verify())
     subca.delete()
Esempio n. 3
0
 def tests_validate_self_signed_root_ca(self):
     """Create a self-signed ca; validate own cert; return True."""
     cert = SpokeCACert(self.ca_cn, self.ca_name)
     self.assertTrue(cert._verify())
Esempio n. 4
0
 def tests_validate_self_signed_root_ca(self):
     """Create a self-signed ca; validate own cert; return True."""
     cert = SpokeCACert(self.ca_cn, self.ca_name)
     self.assertTrue(cert._verify())