-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add an algorithm for setting the agent certificate serial number #293
Conversation
Feel free to review now in advance of TPAC. |
baylesj@, do you mind taking a look? |
PTAL @baylesj I suppose :) |
Is the same comment not relevant to the |
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.
LGTM % feedback.
The use of |
Yes, that is also an issue, thank you for pointing that out. We won't be able to close Issue #276 until we address that. |
PTAL @baylesj, I will have to come up with a separate proposal to fix the subject name. |
Went ahead and merged this as comments have been addressed. Please let me know if there are other comments @baylesj |
SHA: 21b7b45 Reason: push, by mfoltzgoogle Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This addresses Issue #276: Agent Certificate has a circular dependency on itself
We can't use the certificate fingerprint as the serial number, because the serial number is embedded in the certificate itself.
X.509 requires every certificate from the same issuer to have a unique (not necessarily consecutive) serial number.
This PR adds a simple algorithm to generate a unique per-agent serial number per certificate. Even if an agent generates a new certificate once per hour, the counter would take almost 500,000 years to overflow :-P
Preview | Diff