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

Give throwaway test certs reasonable validity intervals #7128

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

aarongable
Copy link
Contributor

Add a new clock argument to the test-only ThrowAwayCert function, and use that clock to generate reasonable notBefore and notAfter timestamps in the resulting throwaway test cert. This is necessary to easily test functions which rely on the expiration timestamp of the certificate, such as upcoming work about computing CRL shards.

Part of #7094

@aarongable aarongable requested a review from a team as a code owner November 1, 2023 21:14
@aarongable
Copy link
Contributor Author

Test-only, merging on one review.

@aarongable aarongable merged commit 3a3e325 into main Nov 1, 2023
@aarongable aarongable deleted the test-cert-expiration branch November 1, 2023 22:24
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