简体   繁体   中英

Java TLS-PSK socket

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM