From 02e96812ae4dc0fb1ce280591e980987c972bd21 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 15 Mar 2022 12:56:15 +0100 Subject: [PATCH] add chain in certificate --- src/risotto/x509.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/risotto/x509.py b/src/risotto/x509.py index dbaa046..f6d41f1 100644 --- a/src/risotto/x509.py +++ b/src/risotto/x509.py @@ -90,6 +90,8 @@ def _gen_cert(is_ca, with open(cert_file, "wt") as f: 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: f.write(dump_privatekey(FILETYPE_PEM, key).decode("utf-8"))