我正在尝试连接到SSL服务器但获得" java.net.SocketException:Connection reset"在握手期间(在“服务器Hello”部分中)。 Java客户端信任所有证书。
P.S:服务器证书有效
任何帮助表示赞赏。提前谢谢。
调试日志以供参考,
[write] MD5 and SHA1 hashes: len = 179
0000: 01 00 00 AF 03 03 54 7E 9B 96 38 7F 0C 3B FA 28 ......T...8..;.(
0010: 58 AB FF AB 6E FE 5F 6D 0B 7C A8 1A 93 18 34 16 X...n._m......4.
0020: B4 85 E3 AF E1 B5 00 00 2A C0 09 C0 13 00 2F C0 ........*...../.
0030: 04 C0 0E 00 33 00 32 C0 07 C0 11 00 05 C0 02 C0 ....3.2.........
0040: 0C C0 08 C0 12 00 0A C0 03 C0 0D 00 16 00 13 00 ................
0050: 04 00 FF 01 00 00 5C 00 0A 00 34 00 32 00 17 00 ......\...4.2...
0060: 01 00 03 00 13 00 15 00 06 00 07 00 09 00 0A 00 ................\
0070: 18 00 0B 00 0C 00 19 00 0D 00 0E 00 0F 00 10 00 ................
0080: 11 00 02 00 12 00 04 00 05 00 14 00 08 00 16 00 ................
0090: 0B 00 02 01 00 00 0D 00 1A 00 18 06 03 06 01 05 ................
00A0: 03 05 01 04 03 04 01 03 03 03 01 02 03 02 01 02 ................
00B0: 02 01 01 ...
main, WRITE: TLSv1.2 Handshake, length = 179
[Raw write]: length = 184
0000: 16 03 03 00 B3 01 00 00 AF 03 03 54 7E 9B 96 38 ...........T...8
0010: 7F 0C 3B FA 28 58 AB FF AB 6E FE 5F 6D 0B 7C A8 ..;.(X...n._m...
0020: 1A 93 18 34 16 B4 85 E3 AF E1 B5 00 00 2A C0 09 ...4.........*..
0030: C0 13 00 2F C0 04 C0 0E 00 33 00 32 C0 07 C0 11 .../.....3.2....
0040: 00 05 C0 02 C0 0C C0 08 C0 12 00 0A C0 03 C0 0D ................
0050: 00 16 00 13 00 04 00 FF 01 00 00 5C 00 0A 00 34 ...........\...4
0060: 00 32 00 17 00 01 00 03 00 13 00 15 00 06 00 07 .2..............
0070: 00 09 00 0A 00 18 00 0B 00 0C 00 19 00 0D 00 0E ................
0080: 00 0F 00 10 00 11 00 02 00 12 00 04 00 05 00 14 ................
0090: 00 08 00 16 00 0B 00 02 01 00 00 0D 00 1A 00 18 ................
00A0: 06 03 06 01 05 03 05 01 04 03 04 01 03 03 03 01 ................
00B0: 02 03 02 01 02 02 01 01 ........
main, handling exception: java.net.SocketException: Connection reset
main, SEND TLSv1 ALERT: fatal, description = unexpected_message
main, WRITE: TLSv1 Alert, length = 2
main, Exception sending alert: java.net.SocketException: Broken pipe
main, called closeSocket()
main, IOException in getSession(): java.net.SocketException: Connection reset