add chain in certificate
This commit is contained in:
parent
9d12af51c0
commit
02e96812ae
1 changed files with 2 additions and 0 deletions
|
@ -90,6 +90,8 @@ def _gen_cert(is_ca,
|
||||||
|
|
||||||
with open(cert_file, "wt") as f:
|
with open(cert_file, "wt") as f:
|
||||||
f.write(dump_certificate(FILETYPE_PEM, cert).decode("utf-8"))
|
f.write(dump_certificate(FILETYPE_PEM, cert).decode("utf-8"))
|
||||||
|
if not is_ca:
|
||||||
|
f.write(dump_certificate(FILETYPE_PEM, ca_cert).decode("utf-8"))
|
||||||
with open(key_file, "wt") as f:
|
with open(key_file, "wt") as f:
|
||||||
f.write(dump_privatekey(FILETYPE_PEM, key).decode("utf-8"))
|
f.write(dump_privatekey(FILETYPE_PEM, key).decode("utf-8"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue