Skip to content

Conversation

@kofemann
Copy link
Member

Motivation:
JVM uses X509ExtendedTrustManager class to validate the host certificate. The CANL provides two implementations of TrustManagers: SSLTrustManagerWithHostnameChecking, which extends X509ExtendedTrustManager, and SSLTrustManager, which extends X509TrustManager. In case of the latter one, JDK will wrap with a AbstractTrustManagerWrapper implementation, which enforces additional checks, which are not desired.

Modification:
Update RemoteHttpTransferService to use SSLTrustManagerWithHostnameChecking to initialize CAnL for remote endpoint certificate validation.

Result:
TPC-HTTP remote endpoint validation performed based on local trusted store and host name.

Fixes: #7927
Acked-by: Karen Hoyos
Target: master, 11.1, 11.0, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit c483a3c)

Motivation:
JVM uses X509ExtendedTrustManager class to validate the host certificate.
The CANL provides two implementations of TrustManagers: SSLTrustManagerWithHostnameChecking,
which extends X509ExtendedTrustManager, and SSLTrustManager, which extends X509TrustManager.
In case of the latter one, JDK will wrap with a AbstractTrustManagerWrapper implementation,
which enforces additional checks, which are not desired.

Modification:
Update RemoteHttpTransferService to use SSLTrustManagerWithHostnameChecking to initialize
CAnL for remote endpoint certificate validation.

Result:
TPC-HTTP remote endpoint validation performed based on local trusted
store and host name.

Fixes: #7927
Acked-by: Karen Hoyos
Target: master, 11.1, 11.0, 10.2
Require-book: no
Require-notes: yes
(cherry picked from commit c483a3c)
Signed-off-by: Tigran Mkrtchyan <[email protected]>
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