Skip to content

fix: don't delegate client alias choosing for ssl bundles#49838

Open
MezinK wants to merge 1 commit intospring-projects:mainfrom
MezinK:alias-support-for-client-ssl-bundles
Open

fix: don't delegate client alias choosing for ssl bundles#49838
MezinK wants to merge 1 commit intospring-projects:mainfrom
MezinK:alias-support-for-client-ssl-bundles

Conversation

@MezinK
Copy link
Copy Markdown

@MezinK MezinK commented Mar 29, 2026

Currently, the .key.alias specified inside of an SSL Bundle is not taken into account when dealing with client certificates.
This causes the delegate (usually SunX509KeyManagerImpl) to just pick the first alias it finds.
For requests requiring mTLS, this can cause issues if the certificates are inside of a shared keystore, as you may not get the certificate that you would want.

I have created an example repo demonstrating this behavior:
https://github.com/MezinK/spring-boot-mtls-demo

Signed-off-by: MezinK <mezinkocahal@hotmail.com>
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 29, 2026
@MezinK MezinK force-pushed the alias-support-for-client-ssl-bundles branch from 4a3acd4 to 427cdd3 Compare March 29, 2026 18:39
@MezinK MezinK changed the title fix: don't delegate client alias choosing fix: don't delegate client alias choosing for ssl bundles Mar 29, 2026
@wilkinsona
Copy link
Copy Markdown
Member

We should consider the discussion in #44629 when reviewing this proposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants