From c0e21315e752f79d06a6fa31f7f11636411507b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Thu, 24 Mar 2022 23:27:35 +0000 Subject: [PATCH] easyrsa gen-dh --- api/kiwi_vpn_api/easyrsa.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/api/kiwi_vpn_api/easyrsa.py b/api/kiwi_vpn_api/easyrsa.py index 816d0a8..3713af7 100644 --- a/api/kiwi_vpn_api/easyrsa.py +++ b/api/kiwi_vpn_api/easyrsa.py @@ -56,7 +56,7 @@ class EasyRSA: days: int = 365 * 50, cn: str = "kiwi-vpn-ca" ) -> crypto.X509: - return self.__build_cert( + cert = self.__build_cert( Path("ca.crt"), f"--passout=pass:{self.__ca_password}", @@ -79,6 +79,9 @@ class EasyRSA: "build-ca", ) + self.__easyrsa("gen-dh") + return cert + def issue( self, days: int = 365 * 50,