ssl - Connection reset by peer on Java 8, but not on Java 7 -


i'm having problem that's similar mel3kings' question, but, in case, connection works ok java 7 update 79, not java 8 update 51; ideas on causing this?

i'm trying connect secure webservice, using sunmscapi keystore. truststore up-to-date. connection works on java 7, on java 8, gives error:

*** *** clientkeyexchange, rsa premastersecret, tlsv1 execução de comandos de nfe, write: tlsv1 handshake, length = 7648 session keygen: premaster secret: 0000: 03 01 2d 6c 21 6d d6 ee   68 9f 27 10 60 99 eb 82  ..-l!m..h.'.`... 0010: 85 4d 41 b8 0c 38 b7 2d   98 72 fb 51 07 bc 9a d7  .ma..8.-.r.q.... 0020: 60 76 98 d6 c8 8e 0b 1c   86 db a0 98 68 cc 35 73  `v..........h.5s connection keygen: client nonce: 0000: 55 af df 74 ae 34 06 95   82 44 92 2b bd 0a 65 2c  u..t.4...d.+..e, 0010: ed 77 4e e8 49 32 06 8a   f6 69 49 34 d9 68 a9  .wn.i2....ii4.h. server nonce: 0000: 55 af df 74 a3 84 c6 57   43 14 f2 13 f4 7e bf 77  u..t...wc......w 0010: c6 cd a6 b5 8e 01 4e 01   f9 42 b0 60 4d 82 27 81  ......n..b.`m.'. master secret: 0000: 6e a8 76 f3 58 4e 53   b5 70 7d 43 6a 2d 1d 6f  .n.v.xns.p.cj-.o 0010: 3c c4 de 7d 2a 3c 40 a3   d8 65 ca 38 43 8e 75 4d  <...*<@..e.8c.um 0020: a4 05 2d 60 6c 82 5b e1   73 ee e1 cc b3 1a 64 ce  ..-`l.[.s.....d. client mac write secret: 0000: b7 21 c6 e4 cb 05 2c b5   b7 83 9a 8a d4 5f 39 00  .!....,......_9. 0010: e5 6a aa 9d                                        .j.. server mac write secret: 0000: 0b 27 c3 1f d9 84 57 8d   43 f0 17 5c 25 05 70 bb  .'....w.c..\%.p. 0010: 40 70 6d 4e                                        @pmn client write key: 0000: ec b4 f8 09 3f 8c 8f fd   c3 8f 31 6e 4c af dc 93  ....?.....1nl... server write key: 0000: 07 7d 2a a1 e5 75 33 87   b8 19 d9 43 cb 6a ce 09  ..*..u3....c.j.. client write iv: 0000: 5d 16 dc e7 dd 0c 00 8f   18 01 05 c0 5b e6 9c 5d  ]...........[..] server write iv: 0000: 0d e4 19 20 44 69 05 33   1c 05 78 4e cb 4a 8c ca  ... di.3..xn.j.. *** certificateverify execução de comandos de nfe, write: tlsv1 handshake, length = 288 execução de comandos de nfe, write: tlsv1 change cipher spec, length = 32 *** finished verify_data:  { 90, 183, 147, 207, 60, 73, 195, 204, 200, 29, 186, 245 } *** execução de comandos de nfe, write: tlsv1 handshake, length = 48 execução de comandos de nfe, handling exception: java.net.socketexception: connection reset %% invalidated:  [session-3, tls_rsa_with_aes_128_cbc_sha] %% invalidated:  [session-4, tls_rsa_with_aes_128_cbc_sha] send tlsv1 alert:  fatal, description = unexpected_message write: tlsv1 alert, length = 32 exception sending alert: java.net.socketexception: connection reset peer: socket write error called closesocket() called close() called closeinternal(true) called close() called closeinternal(true) 

i've managed make work. set https.protocols system property @ start of program:

system.setproperty("https.protocols", "tlsv1,sslv3,sslv2hello"); 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -