Skip to content

Commit

Permalink
Merge pull request #61 from cthart/patch-4
Browse files Browse the repository at this point in the history
Update certutils.py
  • Loading branch information
hbldh authored Apr 15, 2024
2 parents adcd2be + 178f84e commit fafa06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bankid/certutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ def resolve_cert_path(file: str) -> pathlib.Path:
return importlib.resources.files("bankid.certs").joinpath(file)


def create_bankid_test_server_cert_and_key(destination_path: str) -> Tuple[str]:
def create_bankid_test_server_cert_and_key(destination_path: str = ".") -> Tuple[str]:
"""Split the bundled test certificate into certificate and key parts and save them
as separate files, stored in PEM format.
If the environment variable TEST_CERT_FILE is set, use this file
instead of fetching the P12 certificate.
:param destination_path: The directory to save certificate and key files to.
:param destination_path: The directory to save certificate and key files to. Default is the current directory.
:type destination_path: str
:returns: The path tuple ``(cert_path, key_path)``.
:rtype: tuple
Expand Down

0 comments on commit fafa06b

Please sign in to comment.