You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2014/10/17 20:48:04 UTC
[Bug 57108] New: Implement multiple sslcontext SNI (server name
indication) dispatch
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
Bug ID: 57108
Summary: Implement multiple sslcontext SNI (server name
indication) dispatch
Product: Tomcat Connectors
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Common
Assignee: dev@tomcat.apache.org
Reporter: quartz12h@yahoo.com
SSL/TLS defines a mechanism for virtual host names on the same ip/port to have
distinct server certs (and protocols, and else), avoiding the use of wildcard
certs.
With jdk8, a TLS server can prefetch the ClientHello's server name indication
(SNI) extension from the tcp accepted socket inputstream, then create an
sslsocket with the new SSLSocketFactory.createSocket(socket, inputstream,
autoclose) method (the the inputstream arg is just the replay of the prefetched
bytes).
Unfortunately, all socket factories come from a SSLContext already initialized
on keymanagers/trustmanagers on key/trust stores. Once a sslsocket is accepted
from an sslsocketfactory, the sslcontext/server cert is already chosen.
To implement this under tomcat, the SSL connectors must only accept tcp
connetions, detect the intended hostname, choose the proper sslcontext and then
forward to the sslsocketfactory to handshake correctly. This means defining
more than one keystore/truststore/params on the unique ssl connector.
One way to express this potentially large configuration would be to point to a
mapping file outside the server.xml, but it should be possible to inline this
data section too (some new tag element under the connector, perhaps a
collection).
Ultimately, the admin should be able to map a hostname to an sslcontext
descriptor (which is more than just keystore/truststore, but also versions,
protocols, etc...)
Backward compatibility is desirable, so the previous attributes would only be
assimilated as a single mapping of all hostnames. In fact, these mapping will
require a default when no hostname pattern matches, so it is probably good to
plan for a collection of sslcontext mappings plus 1 default sslcontext.
The jdk8 docs are giving complete examples on the prefectching mecanism and how
to use SNI.
http://docs.oracle.com/javase/8/docs/technotes/guides/security/jsse/JSSERefGuide.html#SNIExamples
Particularly the section "Working with Virtual Infrastructures".
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
Chuck Caldarale <ch...@unisys.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
Ralf Hauser <ha...@acm.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hauser@acm.org
--- Comment #3 from Ralf Hauser <ha...@acm.org> ---
see also
http://stackoverflow.com/questions/20190464/howto-setup-tomcat-serving-two-ssl-certificates-using-sni
and
https://en.wikipedia.org/wiki/Server_Name_Indication
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
--- Comment #5 from Unlogic <un...@unlogic.se> ---
This will surely be a killer function if it makes to Tomcat 9. As the use of
Windows XP is fading out the demand for SNI support is increasing by the day.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Common |Connectors
Version|unspecified |trunk
Product|Tomcat Connectors |Tomcat 8
Target Milestone|--- |----
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Correct the component - this has nothing to do with the Connectors component
which is the web server end of the AJP implementation.
Tomcat 8 has to run on a minimum of Java 7 so this is something on the roadmap
for Tomcat 9. Leave this in Tomact 8 until work starts on Tomcat 9 and the
product exists in Bugzilla.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
Unlogic <un...@unlogic.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |unlogic@unlogic.se
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
quartz <qu...@yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |quartz12h@yahoo.com
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
--- Comment #2 from Christopher Schultz <ch...@christopherschultz.net> ---
This may be an opportunity to fix the inability to respond to HTTP requests on
HTTPS endpoints.
We get complaints every once in a while that if you "telnet host 443" against
Tomcat, you get a hung connection while with httpd, you get an "400 Bad
Request" response that actually says "you are making an HTTP connection to an
HTTPS server". Completely changing the infrastructure and handling of secure
sockets isn't justified merely to scratch this itch, but supporting SNI is a
much bigger motivating force. Scratching this itch simultaneously would be
great.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 57108] Implement multiple sslcontext SNI (server name
indication) dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57108
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|Connectors |Connectors
Version|trunk |unspecified
Product|Tomcat 8 |Tomcat 9
Target Milestone|---- |-----
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Move to Tomcat 9 now it exists.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org