Hi, On Mon, Feb 3, 2014 at 11:31 PM, Petar Tahchiev <[email protected]> wrote: > Hello everyone, > > I'm using Jetty version 8.1.14.v20131031 and jetty npn boot version > 1.1.6.v20130911 and jetty npn api version 1.1.0.v20120525. I followed the > documentation and declared 2 spdy connectors in my jetty.xml: > -------------------------- > <New id="sslContextFactory" > class="org.eclipse.jetty.util.ssl.SslContextFactory"> > <Set name="keyStore"><SystemProperty name="jetty.home" default="." > />/src/main/resources/keystore</Set> > <Set name="keyStorePassword">AAAA</Set> > <Set name="keyManagerPassword">BBBB</Set> > <Set name="trustStore"><SystemProperty name="jetty.home" default="." > />/src/main/resources/keystore</Set> > <Set name="trustStorePassword">CCCCC</Set> > <Set name="protocol">TLSv1</Set> > </New> > <Call name="addConnector"> > <Arg> > <New > class="org.eclipse.jetty.spdy.http.HTTPSPDYServerConnector"> > <Set name="Port"><Property name="jetty.port" > default="8111"/></Set> > </New> > </Arg> > </Call> > > <Call name="addConnector"> > <Arg> > <New > class="org.eclipse.jetty.spdy.http.HTTPSPDYServerConnector"> > <Arg> > <Ref id="sslContextFactory" /> > </Arg> > <Set name="Port">8112</Set> > <Set name="statsOn">true</Set> > </New> > </Arg> > </Call> > ---------------------------------- > I also declared the npn boot in my bootclasspath (I use maven jetty plugin) > ----------------------------------- > <jvmArgs>-Xmx1024m -Xms512m -XX:+CMSClassUnloadingEnabled > -XX:MaxPermSize=512m -XX:PermSize=256m > -Xbootclasspath/p:${settings.localRepository}/org/mortbay/jetty/npn/npn-boot/${jetty.npn.boot.version}/npn-boot-${jetty.npn.boot.version}.jar</jvmArgs> > ----------------------------------- > When starting jetty I see the following in the logs: > ----------------------------------- > [WARNING] !RequestLog > [INFO] Started [email protected]:8111 > [INFO] SPDY support is experimental. Please report feedback at > [email protected] > [INFO] Enabled Protocols [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] of > [SSLv2Hello, SSLv3, TLSv1, TLSv1.1, TLSv1.2] > [INFO] Started [email protected]:8112 > [INFO] SPDY support is experimental. Please report feedback at > [email protected] > [INFO] Started Jetty Server > ----------------------------------- > > so it seems like the connectors are working. But when I go to > http://localhost:8111/ chrome or firefox does not seem to detect that this > is spdy!!!
The connector you have on 8111 is a clear-text SPDY connector. Only Chrome speaks clear-text SPDY and only when launched with $ google-chrome --use-spdy=no-ssl The connector on port 8112 is over TLS and will work with any browser that supports SPDY, but you need to restrict the TLS protocols as described in the documentation to TLSv1 or greater (see http://www.eclipse.org/jetty/documentation/current/spdy-configuring.html). -- Simone Bordet ---- http://cometd.org http://webtide.com http://intalio.com Developer advice, training, services and support from the Jetty & CometD experts. Intalio, the modern way to build business applications. _______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
