Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix certificate validity period check #90

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

SergioBenitez
Copy link
Contributor

According to RFC #5280 4.1.2.5, "the validity period for a certificate is the period of time from notBefore through notAfter, inclusive." At present, is_valid_at treats notAfter as exclusive. This commit fixes the issue by treating notAfter as inclusive.

According to RFC #5280 4.1.2.5, "the validity period for a certificate
is the period of time from notBefore through notAfter, inclusive." At
present, `is_valid_at` treats `notAfter` as exclusive. This commit fixes
the issue by treating `notAfter` as inclusive.
@chifflier
Copy link
Member

Applied, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants