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,