aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/certutils.py
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@nullcube.com>2015-02-17 12:03:52 +1300
committerAldo Cortesi <aldo@nullcube.com>2015-02-17 12:03:52 +1300
commit7e5bb74e7211dbe06b33847475854f54c56aa8d5 (patch)
treee988f3bb0807278cd91f4a102912ce81982a76e0 /netlib/certutils.py
parentc9de3e770b8b8567cc3c233e9d0f82fd7a47e634 (diff)
downloadmitmproxy-7e5bb74e7211dbe06b33847475854f54c56aa8d5.tar.gz
mitmproxy-7e5bb74e7211dbe06b33847475854f54c56aa8d5.tar.bz2
mitmproxy-7e5bb74e7211dbe06b33847475854f54c56aa8d5.zip
5 years is enough...
Diffstat (limited to 'netlib/certutils.py')
-rw-r--r--netlib/certutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netlib/certutils.py b/netlib/certutils.py
index 948eb85d..3eb9846d 100644
--- a/netlib/certutils.py
+++ b/netlib/certutils.py
@@ -61,7 +61,7 @@ def dummy_cert(privkey, cacert, commonname, sans):
cert = OpenSSL.crypto.X509()
cert.gmtime_adj_notBefore(-3600*48)
- cert.gmtime_adj_notAfter(60 * 60 * 24 * 30 * 365 * 5)
+ cert.gmtime_adj_notAfter(60 * 60 * 24 * 365 * 5)
cert.set_issuer(cacert.get_subject())
cert.get_subject().CN = commonname
cert.set_serial_number(int(time.time()*10000))