From 3c0dc092777f6251fa97da8761d197d8326deaa6 Mon Sep 17 00:00:00 2001 From: Lars Scheibling Date: Wed, 7 Jun 2023 13:33:11 +0000 Subject: [PATCH] Fixed misspelling of timestamp --- src/sshkey_tools/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sshkey_tools/fields.py b/src/sshkey_tools/fields.py index 5847fae..312ca25 100644 --- a/src/sshkey_tools/fields.py +++ b/src/sshkey_tools/fields.py @@ -1077,7 +1077,7 @@ def __validate_value__(self) -> Union[bool, Exception]: check = int(check.timestamp()) - if check < int(datetime.now().timstamp()): + if check < int(datetime.now().timestamp()): return _EX.InvalidCertificateFieldException( "The certificate validity period is invalid" + " (expected a future datetime object or timestamp)"