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

Method create_self_signed_cert

test/modules/md/md_env.py:614–623  ·  view source on GitHub ↗
(self, spec: CertificateSpec,
                                valid_from: timedelta = timedelta(days=-1),
                                valid_to: timedelta = timedelta(days=89),
                                serial: Optional[int] = None)

Source from the content-addressed store, hash-verified

612 raise TimeoutError(f"ocsp respopnse not available: {domain}")
613
614 def create_self_signed_cert(self, spec: CertificateSpec,
615 valid_from: timedelta = timedelta(days=-1),
616 valid_to: timedelta = timedelta(days=89),
617 serial: Optional[int] = None) -> Credentials:
618 key_type = spec.key_type if spec.key_type else 'rsa4096'
619 return HttpdTestCA.create_credentials(spec=spec, issuer=None,
620 key_type=key_type,
621 valid_from=valid_from,
622 valid_to=valid_to,
623 serial=serial)

Callers 9

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

Calls 1

create_credentialsMethod · 0.45

Tested by 9

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