Skip to content

Commit 5bedf85

Browse files
Update src/snowflake/connector/crl.py
Co-authored-by: James Kasten <james.kasten@snowflake.com>
1 parent 1b51374 commit 5bedf85

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/snowflake/connector/crl.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,9 +459,7 @@ def _is_short_lived_certificate(cert: x509.Certificate) -> bool:
459459
march_15_2026 = datetime(2026, 3, 15, tzinfo=timezone.utc)
460460
if issue_date >= march_15_2026:
461461
return validity_period.total_seconds() <= 604800 # 7 days in seconds
462-
if issue_date >= march_15_2024:
463-
return validity_period.total_seconds() <= 864000 # 10 days in seconds
464-
return False
462+
return validity_period.total_seconds() <= 864000 # 10 days in seconds
465463

466464
@staticmethod
467465
def _extract_crl_distribution_points(cert: x509.Certificate) -> list[str]:

0 commit comments

Comments
 (0)