SSL Settings


I’m wondering if it’s possible to speed-up the handshake of concurrent ssl connection.

For example.

  • In the browser I’m opening
  • The ssl handshake completes and the index page get’s served.
  • The index page requires to load some css, js and images. So 4 concurrent connections (depending on the browser) will be loaded. They will share the cookies etc. But every connection needs to do a new handshake (400ms in this case)

I know you can reuse the same connection if the server supports it. (Testing it like this: openssl s_client -connect -reconnect )

Is there a way to skip the handshake and reuse the session for the new connections?

Largely you need client-side support for that. Chrome has been pushing really hard to make SSL as fast as possible and will reuse the sessions (as well as a bunch of other improvements and spec changes to eventually eliminate all of the extra round trips).

More info:

Some HTTPS tips:

First check to see how you are doing on the security side:

Second, if you are technical enough you should check if the HTTPS webserver is setup correctly, so sessionids should work (if they don’t you will have a lot worse performance for multiple connections).

Next thing is to check if Chrome is able to connect to your site with ‘false start’, so your site doesn’t have to be added to blacklist.

Some other things you could do:
setup your whole site to use a CDN, that way the connection time for HTTPS goes down, because the initial connection time is limited by the latency between the client (browser) and server.

An other trick you could do, because that data is kind of large and not compressed is to shorten the certificate chain. Try to find a CA which does not need a ‘intermediate certificate’ and which is already supported by all browsers that might use your site. You do not need to include the certificate which is already in the browsers. So if there is no intermediate needed, you can remove the whole chain and only send the certificate for the site.

You should also keep an eye on SPDY, there is currently a production ready webserver which supports SPDY out of the box but when there is you should start to set that up. With the ‘Alternative’ header. Chrome already support SPDY, Firefox will probably enable it in Firefox 11.