Skip to content

Conversation

@runeflobakk
Copy link
Member

@runeflobakk runeflobakk commented Jan 8, 2026

Because of Signering API using non-standard server certificate for establishing TLS connection, i.e. enterprise certificates (virksomhetssertifikat).

Apache Http Client changed behavior in v5.6 (see "Compatibility notes" in announcement), where it is not enough to configure your own HostnameVerifier. To avoid the verification which is built-in into the JDK SSL stack, one must explicitly configure this policy to HostnameVerificationPolicy.CLIENT.

apache/httpcomponents-client@d89fdfe

This is a backward compatible change, and signature-api-client-java can still be used with previous minor-versions of Apache Http client.

Because of Signering API using non-standard certificates for establishing TLS connection,
i.e. enterprise certificates (virksomhetssertifikat).

Apache Http Client changed behavior in v5.6, where it is not enough to
configure your own HostnameVerifier. To avoid the verification which is
built-in the JDK SSL stack, one must explicitly configure this policy to
HostnameVerificationPolicy.CLIENT.

https://lists.apache.org/thread/xycs1swxpdc4g3255ms0p1kshbl3ky29 (see
"Compatibility notes")

apache/httpcomponents-client@d89fdfe
@runeflobakk runeflobakk requested a review from hernil January 8, 2026 15:17
@runeflobakk runeflobakk force-pushed the only-noop-hostname-verifier branch from 1f0566b to de9f01f Compare January 8, 2026 15:41
@runeflobakk runeflobakk requested review from a team, eivinhb and martin-jackson January 8, 2026 16:19
@runeflobakk runeflobakk merged commit 74365c7 into main Jan 8, 2026
3 checks passed
@runeflobakk runeflobakk deleted the only-noop-hostname-verifier branch January 8, 2026 19:06
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