In this post I have demonstrate how a Java Remote Method Invocation (RMI) application can make remote invocations over Secure Socket Layer (SSL) connections .

Highlights :

Create a KeyStore and Generate a Public-Private Key
Export a X.509 Certificate against above Key into a file
Create a TrustStore and Import X.509 Certificate as a Trusted Certificate
Define RMI Remote Interface
Implement RMI Remote Interface
Create RMI Client which will consume/invoke RMI method remotely
Finally, create RMI Registry
Run the program!