diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-02-27 15:21:05 +1300 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-02-27 15:21:05 +1300 |
commit | 2ba8296843fc83256e3e13a23529a915d73a2e2d (patch) | |
tree | a4159b23305a86d7dc02f13cd11440e5b3d9e496 /libmproxy/utils.py | |
parent | 00942c1431c551e0bded111271be9b69f5261d91 (diff) | |
download | mitmproxy-2ba8296843fc83256e3e13a23529a915d73a2e2d.tar.gz mitmproxy-2ba8296843fc83256e3e13a23529a915d73a2e2d.tar.bz2 mitmproxy-2ba8296843fc83256e3e13a23529a915d73a2e2d.zip |
Better certificate parsing.
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r-- | libmproxy/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 3381ad33..57a9e983 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -513,7 +513,7 @@ def get_remote_cn(host, port): CNRE = re.compile( r""" - Subject:.*CN=(\S*) + Subject:.*CN=([^ \t\n\r\f\v/]*) """, re.VERBOSE|re.MULTILINE ) @@ -524,8 +524,6 @@ SANRE = re.compile( """, re.VERBOSE|re.MULTILINE ) - - def parse_text_cert(txt): """ Returns a (common name, [subject alternative names]) tuple. |