I tried setting the environment variable in my Intellij Idea under run/debug configurations like: -Dhttps.protocols=TLSv1.2, as well as setting it programmatically like:
System.setProperty("https.protocols", "TLSv1.2");
I also tried setting this property to my RESTEasy client directly like:
javax.ws.rs.client client = ClientBuilder.newBuilder().build();
client.property("https.protocols", "TLSv1.2");
but with no success. What else can I do to enforce my client to use TLSv1.2?