Passing cert dir through the flow to save the cert to disk.

pull/438/head
jMyles 2018-09-16 23:34:09 +02:00 committed by Kieran Prasch
parent f3c614db17
commit 638c78697c
1 changed files with 5 additions and 1 deletions

View File

@ -136,13 +136,17 @@ class HostingKeypair(Keypair):
certificate=None,
certificate_filepath: str = None,
certificate_dir=None,
) -> None:
generate_keys_if_needed=True,
):
self.curve = curve or self._DEFAULT_CURVE
self.certificate_filepath = None
if private_key:
super().__init__(private_key=private_key)
elif certificate:
self.certificate = certificate
super().__init__(public_key=certificate.public_key())
elif certificate_filepath: