diff options
| author | Maximilian Hils <git@maximilianhils.com> | 2016-10-27 13:10:57 -0700 | 
|---|---|---|
| committer | Maximilian Hils <git@maximilianhils.com> | 2016-10-27 13:10:57 -0700 | 
| commit | 48f51849b992a9ca81beca09104b6fec0eac291c (patch) | |
| tree | e0e09653669e1de4202af227af31186bcce95131 | |
| parent | f26a37556064e191e6356f2a9b5dd634cc436b87 (diff) | |
| download | mitmproxy-48f51849b992a9ca81beca09104b6fec0eac291c.tar.gz mitmproxy-48f51849b992a9ca81beca09104b6fec0eac291c.tar.bz2 mitmproxy-48f51849b992a9ca81beca09104b6fec0eac291c.zip | |
fix #1676
| -rw-r--r-- | mitmproxy/certs.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/mitmproxy/certs.py b/mitmproxy/certs.py index 83db4e6e..4e4eb4d1 100644 --- a/mitmproxy/certs.py +++ b/mitmproxy/certs.py @@ -102,7 +102,7 @@ def dummy_cert(privkey, cacert, commonname, sans):      cert.gmtime_adj_notBefore(-3600 * 48)      cert.gmtime_adj_notAfter(DEFAULT_EXP)      cert.set_issuer(cacert.get_subject()) -    if commonname is not None: +    if commonname is not None and len(commonname) < 64:          cert.get_subject().CN = commonname      cert.set_serial_number(int(time.time() * 10000))      if ss: | 
