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

Filtering expired X.509 certificates #1727

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

glucaci
Copy link

@glucaci glucaci commented Jan 21, 2025

What issue does this PR address?
This PR addresses a potential issue where an expired X.509 certificate could remain in use if it was generated with a different configuration and landed in the database. This change provides an additional safeguard to ensure no expired certificates are used as signing keys. The FilterExpiredKeys method now checks the NotAfter date of X509KeyContainer keys, and unit tests have been updated to validate this scenario.

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.

1 participant