Skip to content

Support partial certificate chain authentication #538

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

Merged
merged 5 commits into from
Jun 9, 2025

Conversation

Roytak
Copy link
Collaborator

@Roytak Roytak commented Jun 9, 2025

This PR adds support for the following scenarios:
server <- intermediateCA <- rootCA & client <- intermediateCA <- rootCA

With this PR, the server gets authenticated by the client even if only intermediateCA or rootCA are configured. Works the same way for the server.

This is not supported by MbedTLS for now.

Fixes CESNET/netopeer2#1735

Roytak added 5 commits June 9, 2025 10:25
Fixes the output of the following:
"[ERR]: Client certificate error (self-signed certificate in certificate
chain)." even on successful authentication.
With partial chains enabled the peer can be authenticated even if e.g.
there is a chain client <- intermediateCA <- rootCA and only rootCA is
configured on the server.

Fixes CESNET/netopeer2#1735
@michalvasko michalvasko merged commit d200a06 into CESNET:devel Jun 9, 2025
12 checks passed
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