diff --git a/netlib/certutils.py b/netlib/certutils.py index dcd540538..3effe610d 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()