-
Notifications
You must be signed in to change notification settings - Fork 61
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
feat: verify packed x5c start/end dates #151
Conversation
end | ||
end | ||
|
||
# TODO: Reevaluate this check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call - certificates containing RSA keys should be valid too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
def certificate_in_use?(certificate) | ||
now = Time.now | ||
|
||
certificate.not_before < now && now < certificate.not_after |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't add real security since any certificate is trusted. A more thorough solution that includes this check as well would be to verify using a certificate trust story (like in Android Safetynet), but then #66 becomes required again to do this properly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree this is not thorough.
Just a step in that direction.
Thank you for reviewing. |
No description provided.