Hi,
I am still getting peer not authenticated exception even after upgraded into TSL1.2. I already posted a post on community. Below is the link.
They suggest below code
try { SSLContext ctx = SSLContext.getInstance("TLSv1.2"); ctx.init(null, null, null); SSLContext.setDefault(ctx); } catch (Exception e) { System.out.println(e.getMessage()); }
Or
final SSLContext ctx = SSLContext.getInstance("TLSv1.2"); ctx.init(null,null, new java.security.SecureRandom()); final SSLSocketFactory socketFactory = ctx.getSocketFactory(); HttpsURLConnection.setDefaultSSLSocketFactory(socketFactory);
But I am still getting exception.
Could any one help me to solve the issue?
06-26-2017 05:48 AM
Hello @davidarulHello
It's been a while since this was first posted. Were you able to find a solution?
I would recommend subscribing to this topic so that you'll be alerted via email if anyone from the community is able to respond with any comments. To subscribe, click Topic Options at the top of this thread and then select Subscribe. You'll then receive an email once anyone replies.
Thanks,
Richard
07-05-2017 02:31 PM