Commit 8f9caaad authored by Benjamin Graillot's avatar Benjamin Graillot Committed by graillot

[check_cert.py] Fix decode sur un str

parent 15f3d441
......@@ -111,7 +111,7 @@ else:
cert = smtp.getpeercert()
# DROOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOGUES
expire_date = datetime.datetime.fromtimestamp(time.mktime(time.strptime(cert['notAfter'], "%b %d %H:%M:%S %Y %Z")))
subject = cert["subject"][0][0][1].decode("UTF-8")
subject = cert["subject"][0][0][1]
altname = ""
#
......
Markdown is supported
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