Skip to content

Commit

Permalink
certificate after year 2040
Browse files Browse the repository at this point in the history
  • Loading branch information
m32 committed Sep 16, 2024
1 parent 75e828e commit 47f751a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions endesive/hsm.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,13 +185,13 @@ def certsign(self, sn, pubKey, subject, until, caprivKey, ca):
"validity": {
"not_before": asn1x509.Time(
{
"utc_time": datetime.datetime.now(tz=asn1util.timezone.utc)
"general_time": datetime.datetime.now(tz=asn1util.timezone.utc)
- datetime.timedelta(days=1),
}
),
"not_after": asn1x509.Time(
{
"utc_time": until,
"general_time": until,
}
),
},
Expand Down

0 comments on commit 47f751a

Please sign in to comment.