How to set cipher suites for each destination with javax.net.ssl.HttpsURLConnection

Solution Unverified - Updated -

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 or https.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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content