• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

SSLHandshake failure with rmi

 
rangam
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I would really like you to help me with this problem which i am facing,
as soon as possible. I am new to the SSl world. I have a rmi Client and
server which uses connections through SslRMIServerSocketFactory and
SslRMIClientSocketFactory. The server that i have created starts fine.
When i start the client using the same truststore, policy and password
as what i was using for the keystore,policy and password of the client
it gives me a fatal Handshake error.
the error messages that i get are as follows :



D:\>java -Djava.security.manager
-Djava.security.policy=c:\tomcat\security.policy
-Djavax.net.ssl.truststore=d:\tomcat\.tomcat.keystore
-Djavax.net.ssl.truststorePassword=password RmiClient

error during JRMP connection establishment; nested exc
eption is:javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
java.rmi.ConnectIOException: error during JRMP connection
establishment; nested exception is:
javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown
Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown
Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at
java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown
Source)
at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown
Source)
at $Proxy0.sendMessage(Unknown Source)
at com.cisco.e911.cerservices.RmiClient.main(RmiClient.java:24)
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:
handshake_failure
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown
Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(Unknown
Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown
Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown
Source)
at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
at java.io.BufferedOutputStream.flush(Unknown Source)
at java.io.DataOutputStream.flush(Unknown Source)
.. 7 more

and this is when i run the sever as:

D:\>java -Djava.security.manager
-Djavax.net.ssl.keystore=C:\tomcat\certs\.tomcat.keystore
-Djavax.net.ssl.keystorePassword=password -Djava.security.
policy=c:\tomcat\security.policy RmiServer

Also i would like to know how the handshake is supposed to happen
between the client and the server.

Thanks in advance.
Arun
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic