Example #1
0
 def get_sub_subca_model(self, parent_ca_ref):
     now = datetime.datetime.utcnow().isoformat()
     subject = "CN=sub sub CA " + now + ", O=example.com"
     return ca_models.CAModel(parent_ca_ref=parent_ca_ref,
                              description=self.subca_subca_description,
                              name=self.subca_subca_name,
                              subject_dn=subject)
 def get_snakeoil_subca_model(self):
     parent_ca_ref = self.get_root_ca_ref()
     return ca_models.CAModel(parent_ca_ref=parent_ca_ref,
                              description="Test Snake Oil Subordinate CA",
                              name="Subordinate CA",
                              subject_dn="CN=Subordinate CA, O=example.com")