Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-2198

Add Option to force the SNIHostName

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Critical
    • 2.3.1.Final, 2.2.22.Final
    • 2.3.0.Final
    • Core
    • None

    Description

      Currently the UndertowXnioSsl, when acting like a client, uses the hostname of the URI to set the SNIHostName of the SSLParameters. For example here. This makes the SNI available when using a connection using hostname (https://localhost:8443/...) but impossible to set when using IP (https://127.0.0.1:8443/...).

      This JIRA is to allow a new UndertowOption (for example SSL_SNI_HOSTNAME) that forces the SNI to the option value. That way using the IP but setting a SNIHostName would be possible. Something like the following:

              final ClientConnection connection = client.connect(new URI("https://127.0.0.1:8443"), worker,
                      new UndertowXnioSsl(worker.getXnio(), OptionMap.EMPTY, DefaultServer.getClientSSLContext()),
                      DefaultServer.getBufferPool(),
                      OptionMap.create(UndertowOptions.SSL_SNI_HOSTNAME, "localhost")).get();
              final ClientRequest request = new ClientRequest().setMethod(Methods.GET).setPath("/endpoint");
              connection.sendRequest(request, ...);
      

      Attachments

        Issue Links

          Activity

            People

              rhn-support-rmartinc Ricardo Martin Camarero
              rhn-support-rmartinc Ricardo Martin Camarero
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: