Commit b3e846cc authored by Andrea Manzi's avatar Andrea Manzi
Browse files

FTS-1320: use get_datetime to extract cert validity

parent 3ad071ac
Pipeline #576176 passed with stage
in 1 minute and 23 seconds
...@@ -97,7 +97,7 @@ class Context(object): ...@@ -97,7 +97,7 @@ class Context(object):
self.x509 = self.x509_list[0] self.x509 = self.x509_list[0]
not_after = self.x509.get_not_after() not_after = self.x509.get_not_after()
try: try:
not_after = not_after.get_time() not_after = not_after.get_datetime()
except: except:
# Ugly hack for Python 2.4 # Ugly hack for Python 2.4
import time import time
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment