Here, we're setting some system properties related to TLS, loading our client key and trust stores, and creating a new SSLContext object. We're then creating a registry at port 1099, looking up the RMIServer object under the name "RMIInterface", and calling its sayHello() method.
Both the client and server code require the RMIInterface interface, which is defined as follows: