MCPcopy Index your code
hub / github.com/zappa/Zappa / create_chained_certificate

Function create_chained_certificate

zappa/letsencrypt.py:141–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139
140
141def create_chained_certificate():
142 with open(os.path.join(gettempdir(), "signed.crt"), "rb") as f:
143 signed_crt = f.read()
144
145 cross_cert_url = "https://letsencrypt.org/certs/lets-encrypt-x3-cross-signed.pem"
146 cert = requests.get(cross_cert_url)
147 with open(os.path.join(gettempdir(), "intermediate.pem"), "wb") as intermediate_pem:
148 intermediate_pem.write(cert.content)
149
150 with open(os.path.join(gettempdir(), "chained.pem"), "wb") as chained_pem:
151 chained_pem.write(signed_crt)
152 chained_pem.write(cert.content)
153
154
155def parse_account_key():

Callers 2

Calls 1

gettempdirFunction · 0.85

Tested by 1