Reputation: 808
I am new to java and am trying to add some security to my socket and I would prefer PSK methods. I have found a java library that implements TLS-PSK, JESSIE-PSK-TLS, but I cannot figure out how to actually utilize this library. I have looked at the JSSE reference manual for reference; but I am still clueless. I would greatly appreciate a simple example using TLS-PSK.
Eventually this will be incorporated into an android application.
I have a test server set up for accepting tls-psk clients through tlslite for python and have verified that a python client can connect, complete the handshake and transfer data.
Upvotes: 7
Views: 3340
Reputation: 14383
Have a look at bouncy castle its the de facto package for reading and using certificates in Java. BTW, if your going to install that on Android, you should also take a look at Spongy Castle. I also found the following related topic TLS connection with PSK using Bouncycastle
Upvotes: 1