Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java TLS-PSK socket

Tags:

java

android

ssl

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.

like image 576
platinummonkey Avatar asked Jun 18 '11 15:06

platinummonkey


1 Answers

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

like image 197
Sharon Ben Asher Avatar answered Sep 18 '22 06:09

Sharon Ben Asher