Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RMI over SSL - handshake failure

radiatejavaMar 7 2011 — edited Mar 21 2011
I am having a hard time in making my RMI over SSL work. Certificates etc are all fine. I enabled ssl debug but I am not able to get any conclusive reason. What I see is this line :

RMI TCP Connection(5)-172.16.2.2, received EOFException: error.

I am posting the SSL trace (unable to post the full trace since there is a limit for 300000 chars while posting a topic):
Any help is appreciated.

-------------------------------------
RMI TCP Connection(5)-172.16.2.2, setSoTimeout(30000) called
RMI TCP Connection(5)-172.16.2.2, received EOFException: error
RMI TCP Connection(5)-172.16.2.2, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
RMI TCP Connection(5)-172.16.2.2, SEND TLSv1 ALERT: fatal, description = handshake_failure
RMI TCP Connection(5)-172.16.2.2, WRITE: TLSv1 Alert, length = 2
[Raw write]: length = 7
0000: 15 03 01 00 02 02 28 ......(
RMI TCP Connection(5)-172.16.2.2, called closeSocket()
RMI TCP Connection(5)-172.16.2.2, called close()
RMI TCP Connection(5)-172.16.2.2, called closeInternal(true)
RMI ConnectionExpiration-[10.103.202.10:1099], called close()
RMI ConnectionExpiration-[10.103.202.10:1099], called closeInternal(true)
RMI ConnectionExpiration-[10.103.202.10:1099], SEND TLSv1 ALERT: warning, description = close_notify
Padded plaintext before ENCRYPTION: len = 18
0000: 01 00 B8 48 4B D1 C6 52 F4 F2 48 CF 08 59 F4 C7 ...HK..R..H..Y..
0010: 1F 27 .'
RMI ConnectionExpiration-[10.103.202.10:1099], WRITE: TLSv1 Alert, length = 18
[Raw write]: length = 23
0000: 15 03 01 00 12 C1 58 22 E0 BF 47 70 2F 09 C6 48 ......X"..Gp/..H
0010: 0E 0C 86 5C DC BD A0 ...\...
RMI ConnectionExpiration-[10.103.202.10:1099], called close()
RMI ConnectionExpiration-[10.103.202.10:1099], called closeInternal(true)
RMI ConnectionExpiration-[10.103.202.10:1099], SEND TLSv1 ALERT: warning, description = close_notify
Padded plaintext before ENCRYPTION: len = 18
0000: 01 00 CC 3A 24 15 EC F6 63 DB 09 14 33 44 58 CE ...:$...c...3DX.
0010: 1C 14 ..
RMI ConnectionExpiration-[10.103.202.10:1099], WRITE: TLSv1 Alert, length = 18
[Raw write]: length = 23
[Raw read]: length = 5
0000: 15 03 01 00 12 .....
[Raw read]: length = 18
0000: C1 58 22 E0 BF 47 70 2F 09 C6 48 0E 0C 86 5C DC .X"..Gp/..H...\.
0010: BD A0 ..
RMI TCP Connection(2)-10.103.202.10, READ: TLSv1 Alert, length = 18
Padded plaintext after DECRYPTION: len = 18
0000: 01 00 B8 48 4B D1 C6 52 F4 F2 48 CF 08 59 F4 C7 ...HK..R..H..Y..
0010: 1F 27 .'
RMI TCP Connection(2)-10.103.202.10, RECV TLSv1 ALERT: warning, close_notify
RMI TCP Connection(2)-10.103.202.10, called closeInternal(false)
RMI TCP Connection(2)-10.103.202.10, SEND TLSv1 ALERT: warning, description = close_notify
Padded plaintext before ENCRYPTION: len = 18
0000: 01 00 93 22 96 5A 3E F8 76 32 9E B0 9C 34 5A 9E ...".Z>.v2...4Z.
0010: EB 77 .w
RMI TCP Connection(2)-10.103.202.10, WRITE: TLSv1 Alert, length = 18
[Raw write]: length = 23
0000: 15 03 01 00 12 52 AA 32 CD B1 C3 75 A3 9E 51 72 .....R.2...u..Qr
0010: 5F 22 E0 DF 90 C9 41 _"....A
RMI TCP Connection(2)-10.103.202.10, called close()
RMI TCP Connection(2)-10.103.202.10, called closeInternal(true)
RMI TCP Connection(2)-10.103.202.10, called close()
RMI TCP Connection(2)-10.103.202.10, called closeInternal(true)
[Raw read]: length = 5
0000: 15 03 01 00 12 .....
[Raw read]: length = 18
0000: 1F 38 19 B4 07 46 93 F7 06 71 C9 06 7A D7 69 32 .8...F...q..z.i2
0010: EF 10 ..
RMI TCP Connection(3)-10.103.202.10, READ: TLSv1 Alert, length = 18
Padded plaintext after DECRYPTION: len = 18
0000: 01 00 CC 3A 24 15 EC F6 63 DB 09 14 33 44 58 CE ...:$...c...3DX.
0010: 1C 14 ..
RMI TCP Connection(3)-10.103.202.10, RECV TLSv1 ALERT: warning, close_notify
RMI TCP Connection(3)-10.103.202.10, called closeInternal(false)
RMI TCP Connection(3)-10.103.202.10, SEND TLSv1 ALERT: warning, description = close_notify
Padded plaintext before ENCRYPTION: len = 18
0000: 01 00 49 65 0E 4D 2B 84 18 D3 D9 91 1E 6E D8 36 ..Ie.M+......n.6
0010: AC 68 .h
0000: 15 03 01 00 12 1F 38 19 B4 07 46 93 F7 06 71 C9 ......8...F...q.
0010: 06 7A D7 69 32 EF 10 .z.i2..
RMI TCP Connection(3)-10.103.202.10, WRITE: TLSv1 Alert, length = 18
[Raw write]: length = 23
0000: 15 03 01 00 12 B9 FA F2 20 4B A3 28 A6 D4 19 B3 ........ K.(....
0010: 77 17 DC 69 61 44 50 w..iaDP
RMI TCP Connection(3)-10.103.202.10, called close()
RMI TCP Connection(3)-10.103.202.10, called closeInternal(true)
RMI TCP Connection(3)-10.103.202.10, called close()
RMI TCP Connection(3)-10.103.202.10, called closeInternal(true)
RMI TCP Connection(4)-172.16.2.2, handling exception: java.net.SocketTimeoutException: Read timed out
RMI TCP Connection(4)-172.16.2.2, called close()
RMI TCP Connection(4)-172.16.2.2, called closeInternal(true)
RMI TCP Connection(4)-172.16.2.2, SEND TLSv1 ALERT: warning, description = close_notify
RMI TCP Connection(4)-172.16.2.2, WRITE: TLSv1 Alert, length = 2
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2011
Added on Mar 7 2011
12 comments
4,362 views