diff options
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r-- | libmproxy/utils.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 57a9e983..474f7844 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -300,7 +300,15 @@ def dummy_cert(certdir, ca, commonname, sans): ss = "\n".join(ss) f = open(confpath, "w") - f.write(template%(dict(commonname=commonname, sans=ss))) + f.write( + template%( + dict( + commonname=commonname, + sans=ss, + altnames="subjectAltName = @alt_names" if ss else "" + ) + ) + ) f.close() if ca: |