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

Method await_ocsp_status

test/modules/md/md_env.py:603–612  ·  view source on GitHub ↗
(self, domain, timeout=10, ca_file=None)

Source from the content-addressed store, hash-verified

601 return stat
602
603 def await_ocsp_status(self, domain, timeout=10, ca_file=None):
604 try_until = time.time() + timeout
605 while True:
606 if time.time() >= try_until:
607 break
608 stat = self.get_ocsp_status(domain, ca_file=ca_file)
609 if 'ocsp' in stat and stat['ocsp'] != "no response sent":
610 return stat
611 time.sleep(0.1)
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),

Callers 12

test_md_801_001Method · 0.80
test_md_801_002Method · 0.80
test_md_801_003Method · 0.80
test_md_801_004Method · 0.80
test_md_801_005Method · 0.80
test_md_801_006Method · 0.80
test_md_801_007Method · 0.80
test_md_801_008Method · 0.80
test_md_801_011Method · 0.80
test_md_751_020Method · 0.80
test_md_752_020Method · 0.80
test_md_901_020Method · 0.80

Calls 1

get_ocsp_statusMethod · 0.95

Tested by 12

test_md_801_001Method · 0.64
test_md_801_002Method · 0.64
test_md_801_003Method · 0.64
test_md_801_004Method · 0.64
test_md_801_005Method · 0.64
test_md_801_006Method · 0.64
test_md_801_007Method · 0.64
test_md_801_008Method · 0.64
test_md_801_011Method · 0.64
test_md_751_020Method · 0.64
test_md_752_020Method · 0.64
test_md_901_020Method · 0.64