Skip to content

Add SPKI pinning TLS strategy (opt-in)#715

Merged
arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:spki
Sep 19, 2025
Merged

Add SPKI pinning TLS strategy (opt-in)#715
arturobernalg merged 1 commit into
apache:masterfrom
arturobernalg:spki

Conversation

@arturobernalg

Copy link
Copy Markdown
Member

Introduce SpkiPinningClientTlsStrategy to enforce sha256/<base64(SPKI)> pins after standard trust-manager and hostname verification. Works with classic (setTlsSocketStrategy) and async (setTlsStrategy) clients. Opt-in only; no default behavior change.

@arturobernalg arturobernalg requested a review from ok2c August 27, 2025 15:31

@ok2c ok2c left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@arturobernalg Same thing here. As long as you are willing to maintain this code, none of us can stop you from contributing it.

Introduce SpkiPinningClientTlsStrategy enforcing sha256(SPKI) pins post-handshake with exact/wildcard host matching.
Opt-in; standard PKI and hostname verification remain in place.
@arturobernalg arturobernalg merged commit c21ec45 into apache:master Sep 19, 2025
9 of 10 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.

3 participants