Skip to content

Commit

Permalink
Update certutils.py
Browse files Browse the repository at this point in the history
Make it even easier to retrieve the test certificate by writing it into the current directory if no path is supplied.
  • Loading branch information
cthart authored Apr 3, 2024
1 parent 16039a3 commit 178f84e
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 @@ -23,14 +23,14 @@ def resolve_cert_path(file: str) -> str:
return str(path)


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 178f84e

Please sign in to comment.