Communication over SSL

10 views
Skip to first unread message

B H

unread,
Feb 15, 2017, 1:55:55 AM2/15/17
to project-voldemort
Hi,

I have setup the SSL context in this NioSocketService.java class using the following code.

KeyStore ks = KeyStore.getInstance("JKS");
KeyStore ts = ...
...

SSLContext context = SSLContext.getInstance("TLS");
context.init(kmf.getKeyManagers, tmf.getTrustManagers(), null);

 But where should I be writing the SSL engine code for the server at? The socket channel is opened at the constructor but how can I ensure the socket is communicating over SSL?

Thanks!
Reply all
Reply to author
Forward
0 new messages