ssl - How can I edit the list of cipher suite in Java using Bouncy Castle -
the following code lists supported cipher suites java se 8:
import java.io.ioexception; import java.net.unknownhostexception; import java.util.arrays; import javax.net.ssl.httpsurlconnection; import javax.net.ssl.sslsocketfactory; public class listciphers { public static void main(string[] args) throws unknownhostexception, ioexception { sslsocketfactory factory = httpsurlconnection.getdefaultsslsocketfactory(); string[] ciphersuites = factory.getsupportedciphersuites(); system.out.println(arrays.tostring(ciphersuites)); } //end main }
i want make ssl client configured specific list of cipher suites. cipher suites want use standardized not supported jva se 8. example, cipher listed in firefox:
ecdhe_ecdsa_with_aes_256_sha
please, me way allows me edit list of cipher suite in ssl client. bouncy castle in this? how? please, give me clear step step. if knwo want can achieved using language such python, please me.
how can edit list of cipher suite in java using bouncy castle
see which cipher suites enable ssl socket? , use sslsocketfactoryex
. drop-in replacement java's sslsocketfactory
if don't want use sslsocketfactoryex
, rip code find intersection of cipher suites.
it controls both protocols , cipher suites. there no unexpected surprises, getting sslv3 socket sslsocketfactory.getinstance("tls");
.
nothing configurable, user cannot shoot in foot. it's ready tls 1.3
Comments
Post a Comment