java - SSL Handshake fatal error after Client Hello -


i trying make https call server signed internal ca. couldn't working in spite of adding root certificates in truststore i've set trustmanager trust certificates , disabled hostname verification now.
curl --insecure call works.
-djavax.net.debug=all, handshake fails after client hello

*** clienthello, tlsv1 ... ... main, read: tlsv1 alert, length = 2 main, recv tlsv1 alert: fatal, handshake_failure main, called closesocket() main, handling exception: javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure main, called close() main, called closeinternal(true)

the stack trace is:

javax.net.ssl.sslhandshakeexception: received fatal alert: handshake_failure @ sun.security.ssl.alerts.getsslexception(alerts.java:192) @ sun.security.ssl.alerts.getsslexception(alerts.java:154) @ sun.security.ssl.sslsocketimpl.recvalert(sslsocketimpl.java:1959) @ sun.security.ssl.sslsocketimpl.readrecord(sslsocketimpl.java:1077) @ sun.security.ssl.sslsocketimpl.performinitialhandshake(sslsocketimpl.java:1312) @ sun.security.ssl.sslsocketimpl.starthandshake(sslsocketimpl.java:1339) @ sun.security.ssl.sslsocketimpl.starthandshake(sslsocketimpl.java:1323)

i getting ssl context using

sslcontext sslcontext = sslcontext.getinstance("tls"); 

any highly appreciated.

ps: using java7


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -