mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 16:17:49 +00:00
Merge pull request #1 from mhils/master
Fix cert generation if confdir is relative
This commit is contained in:
commit
f62d5b43b6
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user