Skip to content

Commit 29575c2

Browse files
Fix cert validation date comparison.
1 parent b7fef84 commit 29575c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tabpy/tabpy_server/app/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def validate_cert(cert_file_path):
1717
date_format, encoding = "%Y%m%d%H%M%SZ", "ascii"
1818
not_before = datetime.strptime(cert.get_notBefore().decode(encoding), date_format)
1919
not_after = datetime.strptime(cert.get_notAfter().decode(encoding), date_format)
20-
now = datetime.now()
20+
now = datetime.utcnow()
2121

2222
https_error = "Error using HTTPS: "
2323
if now < not_before:

0 commit comments

Comments
 (0)