Repository navigation
Add X509AuthorityKeyIdentifier to generated leaf certificates - #1899
Conversation
|
@dotnet-policy-service agree company="Cinemo" |
b603f73 to
1932ff5
Compare
|
Thanks a lot for this @AronUJVARY! 🙏 Great catch. Python 3.13 turning on Adding Since this is going into v4, which is a major release, we can do this properly instead of working around old certs. Here's what I'd suggest:
With these changes the root is regenerated on upgrade, so people will need to trust it again. That's fine for v4, and I'll call it out in the release notes. Would you be up for making these changes? If not, no worries at all, just let me know and we'll take it from here. Thanks again! |
|
@waldekmastykarz thanks for the feedback, good points! On it! |
3b2856a to
be9e655
Compare
…gn usage extensions, leaf certificates without a valid AuthorityKeyIdentifier
be9e655 to
4fcb5ab
Compare
|
Hopefully that ticks all the boxes.
If the root cert already has the SubjectKeyIdentifier and KeyCertSign usage (which root certs generated on v3.3.1 do), re-trusting won't be needed, but I can imagine root certs generated on older revisions might lack some of these. |
- Use camelCase for local variables and parameters - Dispose the extra root certificate in the mismatched-AKI test - Use Allman braces and drop trailing blank line Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Thank you! I pushed an extra commit with a few cosmetic changes, but all good beyond that. Merged! |
Python starting at 3.13 defaults to using VERIFY_X509_STRICT in its ssl context (https://docs.python.org/3/library/ssl.html, https://gist.github.com/mdehling/350fc63d286a31b2653aef1362c6b0f5/). This leads to python rejecting the leaf certificates of dev-proxy, complaining about missing authority key identifier. Adding the X509AuthorityKeyIdentifierExtension fixes the issue.