简体   繁体   中英

How to use TLS_PSK in java on both server side and client side

i want to use TLS-PSK on both server side and client side in java. I have found a few tutorials which gives instructions to use it on client side. But i dont have any clue for using it on server side.

Do i need to do any configuration changes in jetty/apache server for it

Java 8 enhancement says, TLS 1.1 and TLS 1.2 on the client by default.

Plz give me any guidence about it.

or can anyone give any way to confirm , if there is no support for it in java on server side.

JSSE imeplements TLS protocol for Java, uses JCA internally. TLS is much more than just PSK, it uses Cipher suites for authorization, cofidentiality etc...

if you want just PSK, then in order to build a key from shared secret, the key derivation function should be used. Use symmetric key algorithm for that. https://www.flexiprovider.de/examples/ExampleCrypt.html

Then, send encoded data, however you want.

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