diff options
author | Andrew Waters <andrew_waters@bmc.com> | 2016-09-08 11:38:48 +0100 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2016-10-14 11:12:19 +0200 |
commit | 8226c957ef17600d9bf68aee8c20d3a4932b7c3b (patch) | |
tree | 294df74dae4a786bbb12e6b3791bc333dbeed5a0 /contrib | |
parent | 80661f5903deec10b2da4e0c51e1cdbf0eb40180 (diff) | |
download | m2crypto-8226c957ef17600d9bf68aee8c20d3a4932b7c3b.tar.gz |
Replace ASN1_UTCTIME with ASN1_TIME which supports both UTCTime and
GeneralizedTime.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/SimpleX509create.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/SimpleX509create.py b/contrib/SimpleX509create.py index 6c6d007..70cfa27 100644 --- a/contrib/SimpleX509create.py +++ b/contrib/SimpleX509create.py @@ -96,7 +96,7 @@ class Cert: # time notBefore # - ASN1 = M2Crypto.ASN1.ASN1_UTCTIME () + ASN1 = M2Crypto.ASN1.ASN1_TIME () ASN1.set_time ( 500 ) self.X509Certificate.set_not_before( ASN1 ) @@ -104,7 +104,7 @@ class Cert: # time notAfter # - ASN1 = M2Crypto.ASN1.ASN1_UTCTIME () + ASN1 = M2Crypto.ASN1.ASN1_TIME () ASN1.set_time ( 500 ) self.X509Certificate.set_not_after( ASN1 ) |