From 178f84e39e927702ebde7e7c71adc5e156ba1a41 Mon Sep 17 00:00:00 2001 From: Colin 't Hart Date: Wed, 3 Apr 2024 11:49:58 +0200 Subject: [PATCH] Update certutils.py Make it even easier to retrieve the test certificate by writing it into the current directory if no path is supplied. --- bankid/certutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bankid/certutils.py b/bankid/certutils.py index d443d14..764dea3 100644 --- a/bankid/certutils.py +++ b/bankid/certutils.py @@ -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