-
Notifications
You must be signed in to change notification settings - Fork 90
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
certificate_complete_chain: handle duplicate intermediate subjects #403
certificate_complete_chain: handle duplicate intermediate subjects #403
Conversation
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, but just wondering if there's a better key value that would trivialize this such as using the cert fingerprint
instead of the subject
?
I guess one could also include a public key fingerprint into the key, but that's not always available in the intermediate / leaf certificate. The module doesn't do proper chain building (which would be required for validating a certificate) anyway, and will not properly handle cases such as multiple paths; it only does an approximation which allows to pick up the correct parts of a chain in the common case. (My personal case is: given a full chain, pick the root from the system's root store.) |
I was suggesting a fingerprint of the cert, but that's effectively the same thing as using the cert object as the key (at least with the current |
Backport to stable-1: 💚 backport PR created✅ Backport PR branch: Backported as #405 🤖 @patchback |
) * Allow multiple intermediate CAs to have same subject. * Add tests. * Fix test name. * Don't use CN for SAN. * Make a bit more compatible. * Include jinja2 compat for CentOS 6. (cherry picked from commit 11a1454)
@Ajpantuso thanks for reviewing this! |
) (#405) * Allow multiple intermediate CAs to have same subject. * Add tests. * Fix test name. * Don't use CN for SAN. * Make a bit more compatible. * Include jinja2 compat for CentOS 6. (cherry picked from commit 11a1454) Co-authored-by: Felix Fontein <[email protected]>
SUMMARY
Fixes #399.
ISSUE TYPE
COMPONENT NAME
certificate_complete_chain