Return a datetime object from SSLCert notbefore and notafter properties.

This commit is contained in:
Aldo Cortesi
2012-04-03 22:23:07 +12:00
parent c6896d7392
commit b9737ed89e
2 changed files with 7 additions and 5 deletions

View File

@@ -55,8 +55,8 @@ class FlowDetailsView(urwid.ListBox):
text.append(urwid.Text([("head", "Server Certificate:")]))
parts = [
["Type", "%s, %s bits"%c.keyinfo],
["Valid to", c.notafter],
["Valid from", c.notbefore],
["Valid to", str(c.notafter)],
["Valid from", str(c.notbefore)],
["Serial", str(c.serial)],
]