Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -189,17 +189,7 @@ public X509Certificate[] getAcceptedIssuers() {

//Install all trusting cert SSL context for jersey client
ClientConfig config = new ClientConfig();
/*config.getProperties().put(HTTPSProperties.PROPERTY_HTTPS_PROPERTIES, new HTTPSProperties(
new HostnameVerifier() {
@Override
public boolean verify( String s, SSLSession sslSession ) {
return true;
}
},
sc
));*/

client = ClientBuilder.newBuilder().sslContext(sc).withConfig(config)
client = ClientBuilder.newBuilder().sslContext(sc).hostnameVerifier((hostname, session) -> true).withConfig(config)
.build();

} else {
Expand Down