MCPcopy Create free account
hub / github.com/certbot/certbot / _save_chain

Function _save_chain

certbot/src/certbot/_internal/client.py:896–906  ·  view source on GitHub ↗

Saves chain_pem at a unique path based on chain_path. :param bytes chain_pem: certificate chain in PEM format :param str chain_file: chain file object

(chain_pem: bytes, chain_file: IO)

Source from the content-addressed store, hash-verified

894
895
896def _save_chain(chain_pem: bytes, chain_file: IO) -> None:
897 """Saves chain_pem at a unique path based on chain_path.
898
899 :param bytes chain_pem: certificate chain in PEM format
900 :param str chain_file: chain file object
901
902 """
903 try:
904 chain_file.write(chain_pem)
905 finally:
906 chain_file.close()

Callers 1

save_certificateMethod · 0.85

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…