easyrsa gen-dh

This commit is contained in:
Jörn-Michael Miehe 2022-03-24 23:27:35 +00:00
parent 5b873aed18
commit c0e21315e7

View file

@ -56,7 +56,7 @@ class EasyRSA:
days: int = 365 * 50, days: int = 365 * 50,
cn: str = "kiwi-vpn-ca" cn: str = "kiwi-vpn-ca"
) -> crypto.X509: ) -> crypto.X509:
return self.__build_cert( cert = self.__build_cert(
Path("ca.crt"), Path("ca.crt"),
f"--passout=pass:{self.__ca_password}", f"--passout=pass:{self.__ca_password}",
@ -79,6 +79,9 @@ class EasyRSA:
"build-ca", "build-ca",
) )
self.__easyrsa("gen-dh")
return cert
def issue( def issue(
self, self,
days: int = 365 * 50, days: int = 365 * 50,