From 2d39c4aaa360cefbcf008604dcc75b98717367dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Sat, 2 Apr 2022 00:44:35 +0000 Subject: [PATCH] formatting --- api/kiwi_vpn_api/easyrsa.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/kiwi_vpn_api/easyrsa.py b/api/kiwi_vpn_api/easyrsa.py index 2103de1..967fb64 100644 --- a/api/kiwi_vpn_api/easyrsa.py +++ b/api/kiwi_vpn_api/easyrsa.py @@ -166,7 +166,7 @@ class EasyRSA: config.crypto.ca_password = ca_password config.save() - return config.crypto.ca_password + return ca_password def __easyrsa( self, @@ -276,7 +276,8 @@ class EasyRSA: return None return self.__build_cert( - Path(f"issued/{dn.common_name}.crt"), + Path("issued").joinpath(f"{dn.common_name}.crt"), + f"build-{cert_type}-full", dn.common_name, "nopass",