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

Function create_domain_csr

zappa/letsencrypt.py:122–138  ·  view source on GitHub ↗
(domain)

Source from the content-addressed store, hash-verified

120
121
122def create_domain_csr(domain):
123 subj = "/CN=" + domain
124 cmd = [
125 "openssl",
126 "req",
127 "-new",
128 "-sha256",
129 "-key",
130 os.path.join(gettempdir(), "domain.key"),
131 "-subj",
132 subj,
133 ]
134
135 with open(os.devnull, "wb") as devnull:
136 out = subprocess.check_output(cmd, stderr=devnull)
137 with open(os.path.join(gettempdir(), "domain.csr"), "wb") as f:
138 f.write(out)
139
140
141def create_chained_certificate():

Callers 2

Calls 1

gettempdirFunction · 0.85

Tested by 1