aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netlib/certutils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/netlib/certutils.py b/netlib/certutils.py
index dcd54053..3effe610 100644
--- a/netlib/certutils.py
+++ b/netlib/certutils.py
@@ -43,8 +43,9 @@ def dummy_ca(path):
os.makedirs(dirname)
if path.endswith(".pem"):
basename, _ = os.path.splitext(path)
+ basename = os.path.basename(basename)
else:
- basename = path
+ basename = os.path.basename(basename)
key, ca = create_ca()