Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1089

Server Name Indication (SNI) Support

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 3.0.7.Final
    • jaxrs
    • None
    • Workaround Exists
    • Hide

      using java 7, fallback on org.jboss.resteasy.client.jaxrs.engines.URLConnectionEngine
      which supports SNI:
      ResteasyClient client =
      new ResteasyClientBuilder()
      .httpEngine(new URLConnectionEngine())
      .build();

      Show
      using java 7, fallback on org.jboss.resteasy.client.jaxrs.engines.URLConnectionEngine which supports SNI: ResteasyClient client = new ResteasyClientBuilder() .httpEngine(new URLConnectionEngine()) .build();
    • see jira comments about fix history

    Description

      There is an actual bug in httpclient-4.2.1 which prevent the support of Server Name Indication (SNI):
      https://issues.apache.org/jira/browse/HTTPCLIENT-1119

      By upgrading to httpclient-4.3.2 the SNI issue should be fixed.

      Right now, I should be able to rely on the described workaround i.e. by switching the http engine to use the url connection engine.

      By using -Djavax.net.debug=ssl:handshake:verbose you should be able to the following appears in the ssl dump:
      Extension server_name, server_name: [host_name: XXXXXXXXXX]

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mathieu@mathieulachance.com Mathieu Lachance (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: