Make certificate not-before time 48 hours.

Fixes #200
This commit is contained in:
Aldo Cortesi 2014-01-08 14:46:55 +13:00
parent 1c6f714193
commit ac1a700fa1

View File

@ -96,7 +96,7 @@ def dummy_cert(ca, commonname, sans):
key = OpenSSL.crypto.load_privatekey(OpenSSL.crypto.FILETYPE_PEM, raw)
cert = OpenSSL.crypto.X509()
cert.gmtime_adj_notBefore(-3600)
cert.gmtime_adj_notBefore(-3600*48)
cert.gmtime_adj_notAfter(60 * 60 * 24 * 30)
cert.set_issuer(ca.get_subject())
cert.get_subject().CN = commonname