赞
踩
Hi:
I'm getting the an SSLException with the message "Unrecognized SSL message, plaintext connection?" in the first call to unwrap() in the server-side of a handshake. I've turned debugging on. The client and server are running as a junit test, so their debug output appears in the same window in eclipse. Here's the output:
%% No cached client session
*** ClientHello, TLSv1
RandomCookie: GMT: 1124231865 bytes = { 196, 56, 199, 85, 79, 168, 16, 131, 242, 111, 117, 228, 52, 80, 183, 128, 120, 237, 240, 149, 73, 189, 92, 43, 107, 126, 175, 148 }
Session ID: {}
Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
Compression Methods: { 0 }
***
[write] MD5 and SHA1 hashes: len = 73
0000: 01 00 00 45 03 01 43 02 6B B9 C4 38 C7 55 4F A8 ...E..C.k..8.UO.
0010: 10 83 F2 6F 75 E4 34 50 B7 80 78 ED F0 95 49 BD ...ou.4P..x...I.
0020: 5C 2B 6B 7E AF 94 00 00 1E 00 04 00 05 00 2F 00 \+k.........../.
0030: 33 00 32 00 0A 00 16 00 13 00 09 00 15 00 12 00 3.2.............
0040: 03 00 08 00 14 00 11 01 00 .........
main, WRITE: TLSv1 Handshake, length = 73
[write] MD5 and SHA1 hashes: len = 98
0000: 01 03 01 00 39 00 00 00 20 00 00 04 01 00 80 00 ....9... .......
0010: 00 05 00 00 2F 00 00 33 00 00 32 00 00 0A 07 00 ..../..3..2.....
0020: C0 00 00 16 00 00 13 00 00 09 06 00 40 00 00 15 [email protected]
0030: 00 00 12 00 00 03 02 00 80 00 00 08 00 00 14 00 ................
0040: 00 11 43 02 6B B9 C4 38 C7 55 4F A8 10 83 F2 6F ..C.k..8.UO....o
0050: 75 E4 34 50 B7 80 78 ED F0 95 49 BD 5C 2B 6B 7E u.4P..x...I.\+k.
0060: AF 94 ..
main, WRITE: SSLv2 client hello message, length = 98
[Raw write]: length = 100
0000: 80 62 01 03 01 00 39 00 00 00 20 00 00 04 01 00 .b....9... .....
0010: 80 00 00 05 00 00 2F 00 00 33 00 00 32 00 00 0A ....../..3..2...
0020: 07 00 C0 00 00 16 00 00 13 00 00 09 06 00 40 00 [email protected]
0030: 00 15 00 00 12 00 00 03 02 00 80 00 00 08 00 00 ................
0040: 14 00 00 11 43 02 6B B9 C4 38 C7 55 4F A8 10 83 ....C.k..8.UO...
0050: F2 6F 75 E4 34 50 B7 80 78 ED F0 95 49 BD 5C 2B .ou.4P..x...I.\+
0060: 6B 7E AF 94 k...
NIO-ChannelServicer Thread, fatal error: 80: problem unwrapping net record
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
NIO-ChannelServicer Thread, SEND TLSv1 ALERT: fatal, description = internal_error
NIO-ChannelServicer Thread, WRITE: TLSv1 Alert, length = 2
I'm not sure what to look for to solve this. Any suggestions?
Regards,
Nick
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。