How to set cipher suites for each destination with javax.net.ssl.HttpsURLConnection
Issue
- How do I set cipher suites for each destination with
javax.net.ssl.HttpsURLConnection
? - Cipher suite in TLS client-side can be set by java system property
jdk.tls.client.cipherSuites
orhttps.cipherSuites
, but both are per-java process settings. How do I set the cipher suite for each HttpsURLConnection instance?
Environment
- OpenJDK
- 8
- 11
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.