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

Method load_pem_cert

test/pyhttpd/certs.py:255–257  ·  view source on GitHub ↗
(self, fpath: str)

Source from the content-addressed store, hash-verified

253 return os.path.join(self._store_dir, f'{name}{key_infix}.pkey.pem')
254
255 def load_pem_cert(self, fpath: str) -> x509.Certificate:
256 with open(fpath) as fd:
257 return x509.load_pem_x509_certificate("".join(fd.readlines()).encode())
258
259 def load_pem_pkey(self, fpath: str):
260 with open(fpath) as fd:

Callers 1

load_credentialsMethod · 0.95

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected