MCPcopy Create free account
hub / github.com/apache/httpd / CertificateSpec

Class CertificateSpec

test/modules/md/md_certs.py:46–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44
45
46class CertificateSpec:
47
48 def __init__(self, name: str = None, domains: List[str] = None,
49 email: str = None,
50 key_type: str = None, single_file: bool = False,
51 valid_from: timedelta = timedelta(days=-1),
52 valid_to: timedelta = timedelta(days=89),
53 client: bool = False,
54 sub_specs: List['CertificateSpec'] = None):
55 self._name = name
56 self.domains = domains
57 self.client = client
58 self.email = email
59 self.key_type = key_type
60 self.single_file = single_file
61 self.valid_from = valid_from
62 self.valid_to = valid_to
63 self.sub_specs = sub_specs
64
65 @property
66 def name(self) -> Optional[str]:
67 if self._name:
68 return self._name
69 elif self.domains:
70 return self.domains[0]
71 return None
72
73
74class Credentials:

Callers 12

test_md_801_009Method · 0.90
__init__Method · 0.90
test_md_702_009Method · 0.90
test_md_730_001Method · 0.90
test_md_730_002Method · 0.90
test_md_730_003Method · 0.90
test_md_920_011Method · 0.90
test_md_502_201Method · 0.90
test_md_901_010Method · 0.90
test_md_901_011Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by 9

test_md_801_009Method · 0.72
test_md_702_009Method · 0.72
test_md_730_001Method · 0.72
test_md_730_002Method · 0.72
test_md_730_003Method · 0.72
test_md_920_011Method · 0.72
test_md_502_201Method · 0.72
test_md_901_010Method · 0.72
test_md_901_011Method · 0.72