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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With