Update certutils.py

refs mitmproxy/mitmproxy#200
This commit is contained in:
Maximilian Hils 2014-04-25 19:40:37 +02:00
parent c2c952b3cc
commit 92081eee04

View File

@ -22,7 +22,7 @@ def create_ca(o, cn, exp):
cert.set_version(2)
cert.get_subject().CN = cn
cert.get_subject().O = o
cert.gmtime_adj_notBefore(0)
cert.gmtime_adj_notBefore(-3600*48)
cert.gmtime_adj_notAfter(exp)
cert.set_issuer(cert.get_subject())
cert.set_pubkey(key)