My studies

Friday, June 5, 2020

Java-com.sun.jersey.api.client.ClientHandlerException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure

There are 2 ways :


1) If it is for the whole application add the below vm option
    -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2

2) Set specific SSL context for service

SSLContext context = SSLContext.getInstance("TLSv1.2");
context.init(null,null,null);
SSLContext.setDefault(context);
Posted by Tim at 3:02 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

About Me

Tim
View my complete profile

Blog Archive

  • ►  2025 (5)
    • ►  October (1)
    • ►  September (1)
    • ►  June (3)
  • ►  2024 (2)
    • ►  August (2)
  • ▼  2020 (1)
    • ▼  June (1)
      • Java-com.sun.jersey.api.client.ClientHandlerExcept...
  • ►  2019 (2)
    • ►  May (1)
    • ►  April (1)
  • ►  2017 (3)
    • ►  May (1)
    • ►  April (1)
    • ►  February (1)
  • ►  2016 (5)
    • ►  October (2)
    • ►  August (2)
    • ►  May (1)
Simple theme. Powered by Blogger.