You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Arturo Bernal <ab...@apache.org> on 2025/08/26 11:31:27 UTC
[DISCUSS] Opt-in SPKI public-key pinning TLS decorator for HttpClient 5
Hi all,
Some deployments need public-key pinning. Today this is done ad-hoc via
custom verifiers. I’d like to add a *small, opt-in* decorator that
enforces *SPKI
SHA-256 pins* *after* normal trust-manager and hostname verification
succeed. Defaults remain unchanged.
Pinning is operationally risky (rotations). This is opt-in only; strong
docs will recommend *two pins* and keeping PKI+hostname checks enabled (we
always call super.verifySession(...)).
Thanks,
Arturo