Define cipher suite for TLS in JCA

后端 未结 2 1299
时光取名叫无心
时光取名叫无心 2021-02-14 11:05

I want the support of the following cipher suites in TLS using JCA:

  • TLS_PSK_WITH_3DES_EDE_CBC_SHA
  • TLS_PSK_WITH_AES_128_CBC_SHA
  • TLS_PSK_WITH_NULL_
相关标签:
2条回答
  • 2021-02-14 11:31

    Still not sure it is possible or not, but we found an implementation of several TLS PSK cipher suites for the Jessie Library.

    0 讨论(0)
  • 2021-02-14 11:39

    The clean way would be to implement your own SSLSocketFactory.

    If you want to try adding I only see the way to modify the internal classes via reflection.

    The relevant class is:

    com.sun.net.ssl.internal.ssl.CipherSuite

    It has an overloaded private static method "add" for adding cipher implementations to the supported list. May be worth a try.

    0 讨论(0)
提交回复
热议问题