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
Post a Comment