forked from igrigorik/istlsfastyet.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
688 lines (634 loc) · 43.4 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Is TLS Fast Yet?</title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/app.css" />
<link rel="stylesheet" href="css/style.css" />
<meta name="author" content="Ilya Grigorik" />
<meta name="twitter:card" content="summary">
<meta name="description" content="TLS has exactly one performance problem: it is not used widely enough. Everything else can be optimized." />
<meta name="twitter:description" content="TLS has exactly one performance problem: it is not used widely enough. Everything else can be optimized.">
<meta property="og:image" content="/images/preview.png" />
<meta name="twitter:image:src" content="/images/preview.png">
<meta name="twitter:creator" content="@igrigorik">
<meta name="twitter:url" content="https://istlsfastyet.com/">
<meta name="twitter:title" content="Is TLS Fast Yet?">
</head>
<body>
<header>
<div class="row">
<div class="large-12 columns">
<h2>TLS has exactly one performance problem: it is not used widely enough.</h2>
<h3>Everything else can be optimized.</h3>
</div>
</div>
</header>
<div class="row">
<div class="small-12 columns">
<p>Data delivered over an unencrypted channel is insecure, untrustworthy, and trivially intercepted. We owe it to our users to protect the security, privacy, and integrity of their data — all data must be encrypted while in flight and at rest. Historically, concerns over performance have been the common excuse to avoid these obligations, but today that is a false dichotomy. Let's dispel some myths.</p>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<h3 id="cpu-latency"><a href="#cpu-latency">CPU & latency costs</a></h3>
</div>
<div class="small-12 medium-8 large-8 columns">
<p>The process of establishing and communicating over an encrypted channel introduces additional computational costs. First, there is the asymmetric (public key) encryption used during the TLS handshake. Then, once a shared secret is established, symmetric encryption takes over.</p>
</div>
<div class="small-12 medium-4 large-4 columns panel">
<pre><b># upgrade to latest</b>
$> openssl version
OpenSSL 1.1.0h 27 Mar 2018
<b># run benchmarks</b>
$> openssl speed sha
$> openssl speed ecdh</pre>
</div>
</div>
<div class="row">
<div class="small-12 large-12 columns">
<p>Good news is, modern hardware has made great improvements to help minimize these costs, and what once may have required additional hardware can now be done efficiently by the CPU.</p>
</div>
</div>
<div class="row panel callout">
<div class="small-12 medium-6 large-6 columns">
<p>
<q>On our production frontend machines, SSL/TLS accounts for less than 1% of the CPU load, less than 10 KB of memory per connection and less than 2% of network overhead. Many people believe that SSL/TLS takes a lot of CPU time and we hope the preceding numbers will help to dispel that.</q><br/>
<cite class="right"> - Adam Langley, Google <a href="https://www.imperialviolet.org/2010/06/25/overclocking-ssl.html">"Overclocking SSL"</a></cite>
</p>
</div>
<div class="small-12 medium-6 large-6 columns">
<p>
<q>We have deployed TLS at a large scale using both hardware and software load balancers. We have found that modern software-based TLS implementations running on commodity CPUs are fast enough to handle heavy HTTPS traffic load without needing to resort to dedicated cryptographic hardware.</q><br/>
<cite class="right"> - Doug Beaver, Facebook <a href="http://lists.w3.org/Archives/Public/ietf-http-wg/2012JulSep/0251.html">"HTTP2 Expression of Interest"</a></cite>
</p>
</div>
<div class="small-12 large-12 columns">
<p></p>
<p>
<q>Elliptic Curve Diffie-Hellman (ECDHE) is only a little more expensive than RSA for an equivalent security level… In practical deployment, we found that enabling and prioritizing ECDHE cipher suites actually caused negligible increase in CPU usage. HTTP keepalives and session resumption mean that most requests do not require a full handshake, so handshake operations do not dominate our CPU usage. We find 75% of Twitter’s client requests are sent over connections established using ECDHE. The remaining 25% consists mostly of older clients that don’t yet support the ECDHE cipher suites.</q><br/>
<cite class="right"> - Jacob Hoffman-Andrews, Twitter <a href="https://blog.twitter.com/2013/forward-secrecy-at-twitter-0">"Forward Secrecy at Twitter"</a></cite>
</p>
</div>
</div>
<div class="row">
<div class="small-12 medium-8 large-8 columns">
<p>Before the client and the server can begin exchanging application data over TLS, the encrypted tunnel must be negotiated, which introduces additional roundtrips for each new connection. However, we don't have to incur the cost of a full handshake in every case: TLS resumption and TLS False Start decrease the cost to a single roundtrip for new and returning clients.</p>
</div>
<div class="small-12 medium-4 large-4 columns text-center">
<img src="images/rtts.png" alt=""/>
</div>
</div>
<div class="row">
<div class="small-12 medium-8 large-8 columns">
<hr />
<p>A well tuned TLS deployment can make an enormous positive difference in the user experience, as well as in your operational costs. Some of the most critical features and concepts:</p>
<ul>
<li><a href="https://hpbn.co/transport-layer-security-tls/#tls-handshake">TLS handshake</a></li>
<li><a href="https://hpbn.co/transport-layer-security-tls/#tls-session-resumption">TLS session resumption</a></li>
<li><a href="https://hpbn.co/transport-layer-security-tls/#enable-tls-false-start">TLS False Start</a></li>
<li><a href="https://hpbn.co/transport-layer-security-tls/#optimize-tls-record-size">TLS record size optimization</a></li>
<li><a href="https://hpbn.co/transport-layer-security-tls/#leverage-early-termination">Early termination</a></li>
<li><a href="https://hpbn.co/transport-layer-security-tls/#enable-http-strict-transport-security-hsts">HTTP Strict Transport Security (HSTS)</a></li>
</ul>
<p>To deliver the best performance, run down the <a href="https://hpbn.co/transport-layer-security-tls/#optimizing-for-tls">TLS performance checklist</a> and use a tool like <a href="https://www.ssllabs.com/ssltest/">Qualys SSL Server Test</a> to scan your server for common configuration and security flaws.</p>
</div>
<div class="small-12 medium-4 large-4 columns panel">
<h5>High Performance Browser Networking</h5>
<img src="images/hpbn.png" alt=""/>
<p><i>What every developer should know about networking and web performance.</i></p>
<a href="https://hpbn.co/?utm_source=istlsfastyet&utm_medium=referral&utm_campaign=tls" class="success button expand">Read HPBN online</a>
</div>
<hr />
</div>
<div class="row">
<div class="large-12 columns">
<h3 id="server-performance"><a href="#server-performance">Server performance</a></h3>
<p>TLS exposes many different knobs and new config flags on every server. Our goal here is not to provide an exhaustive list (consult server docs for that), but to highlight status of important performance-oriented features: resumption, stapling, false start (requires ALPN and forward secrecy), and support for the HTTP/2 protocol.</p>
<table class="cf">
<thead>
<tr>
<th style="width: 100px"> </th>
<th>Session identifiers</th>
<th>Session tickets</th>
<th>OCSP stapling</th>
<th>Dynamic record sizing</th>
<th>ALPN</th>
<th>Forward secrecy</th>
<th>HTTP/2</th>
<th>TLS 1.3</th>
<th>TLS 1.3 <nobr>0-RTT</nobr></th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html">Apache</a></td>
<td class="ok"><a href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslsessioncache">yes</a></td>
<td class="ok"><a href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslsessionticketkeyfile">yes</a></td>
<td class="ok"><a href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslusestapling">yes</a></td>
<td class="ok"><a href="https://httpd.apache.org/docs/2.4/mod/mod_http2.html#h2tlscooldownsecs">yes</a></td>
<td class="ok"><a href="http://httpd.apache.org/docs/trunk/mod/mod_ssl.html#sslalpnpreference">yes</a></td>
<td class="ok"><a href="https://wiki.mozilla.org/Security/Server_Side_TLS#Apache">yes</a></td>
<td class="ok"><a href="https://httpd.apache.org/docs/trunk/mod/mod_http2.html">yes</a></td>
<td class="ok"><a href="https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslciphersuite">yes</a></td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://docs.trafficserver.apache.org/en/latest/index.html">ATS</a></td>
<td class="ok"><a href="https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html#proxy-config-ssl-session-cache-timeout">yes</a></td>
<td class="ok"><a href="https://cwiki.apache.org/confluence/display/TS/What's+new+in+v4.2.x#What'snewinv4.2.x-RFC5077TLSSessiontickets">yes</a></td>
<td class="ok"><a href="https://issues.apache.org/jira/browse/TS-2367">yes</a></td>
<td class="ok"><a href="https://issues.apache.org/jira/browse/TS-2503">dynamic</a></td>
<td class="ok"><a href="http://mail-archives.us.apache.org/mod_mbox/www-announce/201206.mbox/%[email protected]%3E">yes</a></td>
<td class="ok"><a href="https://issues.apache.org/jira/browse/TS-2372">yes</a></td>
<td class="ok"><a href="https://docs.trafficserver.apache.org/en/latest/admin-guide/files/records.config.en.html#http-2-configuration">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://github.com/indutny/bud">bud</a></td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://github.com/indutny/bud#ocsp-stapling">yes</a></td>
<td class="warn">static</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://github.com/mholt/caddy">Caddy</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="ok"><a href="https://caddyserver.com/docs/tls#summary">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://support.f5.com/kb/en-us/solutions/public/14000/700/sol14783.html">F5 BIG-IP</a></td>
<td class="ok"><a href="https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-ssl-administration-11-6-0/5.html#unique_828493537">yes</a></td>
<td class="ok"><a href="https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-ssl-administration-11-6-0/5.html#unique_774070786">yes</a></td>
<td class="ok"><a href="https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/bigip-ssl-administration-11-6-0/4.html#unique_823049624">yes</a></td>
<td class="ok"><a href="https://support.f5.com/content/kb/en-us/products/big-ip_ltm/manuals/product/bigip-ssl-administration-12-1-0/_jcr_content/pdfAttach/download/file.res/BIG-IP_System__SSL_Administration.pdf">yes</a></a></td>
<td class="ok"><a href="https://support.f5.com/kb/en-us/products/big-ip-aam/manuals/product/aam-concepts-11-6-0/15.html">yes</a></td>
<td class="ok"><a href="https://support.f5.com/kb/en-us/solutions/public/13000/100/sol13163.html">yes</a></td>
<td class="ok"><a href="https://support.f5.com/kb/en-us/products/big-ip-aam/manuals/product/aam-concepts-11-6-0/15.html">yes</a></td>
<td class="warn"><a href="https://support.f5.com/kb/en-us/products/big-ip_ltm/releasenotes/product/relnote-bigip-14-0-0.html#rn_ltm-tmos_new">beta</a></td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://h2o.examp1e.net/">H2O</a></td>
<td class="ok"><a href="https://h2o.examp1e.net/configure/base_directives.html#ssl-session-resumption">yes</a></td>
<td class="ok"><a href="https://h2o.examp1e.net/configure/base_directives.html#ssl-session-resumption">yes</a></td>
<td class="ok"><a href="https://h2o.examp1e.net/configure/base_directives.html#ocsp-update-interval">yes</a></td>
<td class="ok"><a href="https://h2o.examp1e.net/configure/http2_directives.html#latency-optimization">dynamic</a></td>
<td class="ok">yes</td>
<td class="ok"><a href="https://h2o.examp1e.net/configure/base_directives.html#ssl-session-resumption-ticket-based">yes</a></td>
<td class="ok"><a href="https://h2o.examp1e.net/configure/http2_directives.html">yes</a></td>
<td class="ok"><a href="https://github.com/h2o/h2o/releases/tag/v2.2.0">yes</a></td>
<td class="ok"><a href="https://github.com/h2o/h2o/releases/tag/v2.2.0">yes</td>
</tr>
<tr>
<td><a href="http://cbonte.github.io/haproxy-dconv/1.8/configuration.html">HAProxy</a></td>
<td class="ok"><a href="https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.1-no-tls-tickets">yes</a></td>
<td class="ok"><a href="https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.1-no-tls-tickets">yes</a></td>
<td class="ok"><a href="https://kura.io/2014/07/02/haproxy-ocsp-stapling/">yes</a></td>
<td class="ok"><a href="https://gist.github.com/igrigorik/8960971">dynamic</a></td>
<td class="ok"><a href="https://cbonte.github.io/haproxy-dconv/configuration-1.5.html#5.1-alpn">yes</a></td>
<td class="ok"><a href="https://wiki.mozilla.org/Security/Server_Side_TLS#Haproxy">yes</a></td>
<td class="ok"><a href="http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#1.1">yes</a></td>
<td class="ok"><a href="http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.1-ssl-max-ver">yes</a></td>
<td class="ok"><a href="http://cbonte.github.io/haproxy-dconv/1.8/configuration.html#5.1-allow-0rtt">yes</a></td>
</tr>
<tr>
<td><a href="https://github.com/varnish/hitch">Hitch</a></td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://github.com/varnish/hitch/blob/master/docs/configuration.md#ocsp-stapling">yes</a></td>
<td class="alert">no</td>
<td class="ok"><a href="https://github.com/varnish/hitch/blob/master/docs/configuration.md#alpnnpn-support">yes</a></td>
<td class="ok">yes</td>
<td class=warn><a href="https://github.com/varnish/hitch/blob/master/CHANGES.rst#hitch-140-beta1-2016-08-26">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="http://www.iis.net/configreference">IIS</a></td>
<td class="ok">yes</td>
<td class="ok"><a href="http://technet.microsoft.com/en-us/library/hh831771.aspx">yes</a></td>
<td class="ok"><a href="http://unmitigatedrisk.com/?p=368">yes</a></td>
<td class="alert">no</td>
<td class="ok"><a href="http://technet.microsoft.com/en-us/library/hh831771.aspx">yes</a></td>
<td class="ok"><a href="http://blogs.technet.com/b/erezs_iis_blog/archive/2013/08/22/perfect-secrecy-in-an-imperfect-world.aspx">yes</a></td>
<td class="ok"><a href="http://blogs.iis.net/nazim/http-2-for-iis-in-windows-10-technical-preview">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://www.citrix.com/products/netscaler-application-delivery-controller/overview.html?posit=glnav">NetScaler</a></td>
<td class="ok"><a href="http://support.citrix.com/article/CTX121925">yes</a></td>
<td class="ok"><a href="http://docs.citrix.com/en-us/netscaler/11-1/ssl/customize-ssl-config/support-for-tls-session-ticket-extension.html">yes</a></td>
<td class="ok"><a href="http://docs.citrix.com/en-us/netscaler/11-1/ssl/ssl-11-1-ocsp-stapling-solution.html">yes</a></td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://support.citrix.com/proddocs/topic/netscaler-traffic-management-10-5-map/ns-ssl-config-ecdhe-ciphers-tsk.html">yes</a></td>
<td class="ok"><a href="http://docs.citrix.com/en-us/netscaler/11/system/http-configurations/configuring-http2.html">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html">NGINX</a></td>
<td class="ok"><a href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_cache">yes</a></td>
<td class="ok"><a href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_session_tickets">yes</a></td>
<td class="ok"><a href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_stapling">yes</a></td>
<td class="warn"><a href="http://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_buffer_size">static</a> (16k)</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx">yes</a></td>
<td class="ok"><a href="https://www.nginx.com/blog/early-alpha-patch-http2/">yes</a></td>
<td class="ok"><a href="https://twitter.com/nginxorg/status/856896480497385473">yes</a></td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://nodejs.org/api/https.html">node.js</a></td>
<td class="ok">yes</td>
<td class="ok"><a href="https://nodejs.org/api/tls.html#tls_tls_createserver_options_secureconnectionlistener">yes</a></td>
<td class="warn"><a href="https://nodejs.org/api/tls.html#tls_event_ocsprequest">optional</a></td>
<td class="warn"><a href="https://nodejs.org/api/tls.html#tls_tlssocket_setmaxsendfragment_size">optional</a></td>
<td class="ok"><a href="https://nodejs.org/api/tls.html#tls_event_secureconnection">yes</a></td>
<td class="ok"><a href="https://nodejs.org/api/tls.html#tls_perfect_forward_secrecy">yes</a></td>
<td class="ok"><a href="https://github.com/molnarg/node-http2">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://golang.org/pkg/crypto/tls/">Go</a></td>
<td class="ok"><a href="https://golang.org/pkg/crypto/tls/#ClientSessionState">yes</a></td>
<td class="ok"><a href="https://golang.org/pkg/crypto/tls/#Config.SetSessionTicketKeys">yes</a></td>
<td class="warn"><a href="https://golang.org/pkg/crypto/tls/#Certificate">optional</a></td>
<td class="ok"><a href="https://golang.org/doc/go1.7#crypto_tls">yes</a></td>
<td class="ok"><a href="https://golang.org/pkg/crypto/tls/#Config">yes</a></td>
<td class="ok"><a href="https://golang.org/pkg/crypto/tls/#Config">yes</a></td>
<td class="ok"><a href="https://golang.org/doc/go1.6#http2">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://nghttp2.org/documentation/nghttpx.1.html">nghttpx</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#session-id-resumption">yes</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#tls-session-ticket-resumption">yes</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#ocsp-stapling">yes</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx--tls-dyn-rec-warmup-threshold">dynamic</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx--npn-list">yes</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#cmdoption-nghttpx--ciphers">yes</a></td>
<td class="ok"><a href="https://nghttp2.org/documentation/nghttpx.1.html#http-2-and-spdy">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://www.pulsesecure.net/vtm">Pulse Secure vTM</a></td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1027/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/17.4/ps-vtm-17.4-userguide.pdf#page=224">yes</a></td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1027/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/17.4/ps-vtm-17.4-userguide.pdf#page=228">yes</a></td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1027/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/17.4/ps-vtm-17.4-userguide.pdf#page=225">yes</a></td>
<td class="alert">no</td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1027/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/17.4/ps-vtm-17.4-userguide.pdf#page=175">yes</a></td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1027/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/17.4/ps-vtm-17.4-userguide.pdf#page=219">yes</a></td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1027/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/17.4/ps-vtm-17.4-userguide.pdf#page=175">yes</a></td>
<td class="ok"><a href="https://www.pulsesecure.net/download/techpubs/current/1441/Pulse-vADC-Solutions/Pulse-Virtual-Traffic-Manager/18.3/ps-vtm-18.3-userguide.pdf#page=226">yes</a></td>
<td class="alert">no</td>
</tr>
<tr>
<td><a href="https://www.shimmercat.com/">ShimmerCat</a></td>
<td class="ok"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#misc-tls-features">yes</a></td>
<td class="alert"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#misc-tls-features">no</a></td>
<td class="alert"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#misc-tls-features">no</a></td>
<td class="ok"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#frame-sizes-for-data-headers">yes</a></td>
<td class="ok"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#misc-tls-features">yes</a></td>
<td class="ok"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#misc-tls-features">yes</a></td>
<td class="ok"><a href="https://www.shimmercat.com/en/docs/1.5/featureset/#protocol-support">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
</tbody>
</table>
<p>Your favorite server missing, or found an error? Open a <a href="https://github.com/igrigorik/istlsfastyet.com/issues">pull request!</a></p>
<hr />
</div>
</div>
<div class="row">
<div class="large-12 columns">
<h3 id="cdn-paas"><a href="#cdn-paas">CDN & PaaS performance</a></h3>
<p>Using a CDN allows us to terminate the connection close to the user, which can significantly reduce the cost of TCP and TLS handshake - see <a href="https://hpbn.co/transport-layer-security-tls/#leverage-early-termination">early termination</a>. For best results you should be using a CDN to serve both static and dynamic content.</p>
<table class="cf">
<thead>
<tr>
<th style="width:100px"> </th>
<th>Session identifiers</th>
<th>Session tickets</th>
<th>OCSP stapling</th>
<th>Dynamic record sizing</th>
<th>ALPN</th>
<th>Forward secrecy</th>
<th>HTTP/2</th>
<th>TLS 1.3</th>
<th>TLS 1.3 <nobr>0-RTT</nobr></th>
</tr>
</thead>
<tbody>
<tr>
<td>Akamai</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://community.akamai.com/community/web-performance/blog/2017/10/27/certificate-provisioning-system-recommendations-and-best-practices">yes</a></td>
<td class="warn">configurable (static)</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://http2.akamai.com/">yes</a></td>
<td class="warn"><a href="https://community.akamai.com/community/web-performance/blog/2017/10/25/get-ready-for-tls-13">beta</a></td>
<td class="alert">no</td>
</tr>
<tr>
<td>AWS ELB (Classic)</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="ok"><a href="https://aws.amazon.com/about-aws/whats-new/2014/02/19/elastic-load-balancing-perfect-forward-secrecy-and-more-new-security-features/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>AWS ELB (Application)</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://aws.amazon.com/about-aws/whats-new/2014/02/19/elastic-load-balancing-perfect-forward-secrecy-and-more-new-security-features/">yes</a></td>
<td class="ok"><a href="https://aws.amazon.com/blogs/aws/new-aws-application-load-balancer/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>AWS CloudFront</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://aws.amazon.com/about-aws/whats-new/2016/09/amazon-cloudfront-now-supports-http2/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>BelugaCDN</td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">yes</a></td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">yes</a></td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">yes</a></td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">dynamic</a></td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">yes</a></td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">yes</a></td>
<td class="ok"><a href="https://docs.belugacdn.com/docs/ssl-certificates">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>CDN77</td>
<td class="ok"><a href="https://client.cdn77.com/support/knowledgebase/general-faq/ssl-tech-specs">yes</a></td>
<td class="ok"><a href="https://client.cdn77.com/support/knowledgebase/general-faq/ssl-tech-specs">yes</a></td>
<td class="ok"><a href="https://client.cdn77.com/support/knowledgebase/general-faq/ssl-tech-specs">yes</a></td>
<td class="ok"><a href="https://client.cdn77.com/support/knowledgebase/general-faq/ssl-tech-specs">dynamic</a></td>
<td class="ok"><a href="https://client.cdn77.com/support/knowledgebase/general-faq/ssl-tech-specs">yes</a></td>
<td class="ok"><a href="https://client.cdn77.com/support/knowledgebase/general-faq/ssl-tech-specs">yes</a></td>
<td class="ok"><a href="https://www.cdn77.com/http2">yes</a></td>
<td class="ok"><a href="https://www.cdn77.com/blog/latest-tls-improving-https/">yes</a></td>
<td class="ok"><a href="https://www.cdn77.com/blog/latest-tls-improving-https/">yes</a></td>
</tr>
<tr>
<td>Cloudflare</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok">dynamic</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://blog.cloudflare.com/introducing-http2/">yes</a></td>
<td class="ok"><a href="https://blog.cloudflare.com/introducing-tls-1-3/">yes</a></td>
<td class="ok"><a href="https://blog.cloudflare.com/introducing-0-rtt/">yes</a></td>
</tr>
<tr>
<td>ChinaNetCenter</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>EdgeCast</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.verizondigitalmedia.com/blog/2017/04/http2-done-right/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>Fastly</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok">dynamic</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.fastly.com/blog/http2-now-general-availability">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>Google App Engine</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="ok">dynamic</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>Heroku</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>Imperva Incapsula</td>
<td class="ok"><a href="https://incapsula.zendesk.com/hc/en-us/articles/235148027-Incapsula-TLS-SSL-Tech-Specs">yes</a></td>
<td class="ok"><a href="https://incapsula.zendesk.com/hc/en-us/articles/235148027-Incapsula-TLS-SSL-Tech-Specs">yes</a></td>
<td class="ok"><a href="https://incapsula.zendesk.com/hc/en-us/articles/235148027-Incapsula-TLS-SSL-Tech-Specs">yes</a></td>
<td class="ok"><a href="https://incapsula.zendesk.com/hc/en-us/articles/235148027-Incapsula-TLS-SSL-Tech-Specs">dynamic</a></td>
<td class="ok"><a href="https://incapsula.zendesk.com/hc/en-us/articles/235148027-Incapsula-TLS-SSL-Tech-Specs">yes</a></td>
<td class="ok"><a href="https://incapsula.zendesk.com/hc/en-us/articles/235148027-Incapsula-TLS-SSL-Tech-Specs">yes</a></td>
<td class="ok"><a href="https://www.incapsula.com/blog/http2-is-here-what-you-need-to-know.html">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>Instart Logic</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="warn">configurable (static)</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.instartlogic.com/blog/upgrading-http2">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>KeyCDN</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.keycdn.com/support/ocsp-stapling/">yes</a></td>
<td class="warn">configurable (static)</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.keycdn.com/blog/keycdn-http2-support/">yes</a></td>
<td class="ok"><a href="https://www.keycdn.com/blog/tls-1-3-support/">yes</a></td>
<td class="ok"><a href="https://www.keycdn.com/blog/tls-1-3-support/">yes</a></td>
</tr>
<tr>
<td>Limelight</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="warn">configurable</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.limelight.com/orchestrate-platform/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>StackPath</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.maxcdn.com/blog/now-shipping-ocsp-stapling/">yes</a></td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.maxcdn.com/blog/http2-support/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>Netlify</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="ok">dynamic</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="ok"><a href="https://www.netlify.com/blog/2015/10/20/netlify-news-no.-6/">yes</a></td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
<tr>
<td>QUANTIL</td>
<td class="ok">yes</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="ok">yes</td>
<td class="alert">no</td>
<td class="alert">no</td>
<td class="alert">no</td>
</tr>
</tbody>
</table>
<p>Your favorite CDN or PaaS provider missing, or found an error? Open a <a href="https://github.com/igrigorik/istlsfastyet.com/issues">pull request!</a></p>
<hr />
</div>
</div>
<div class="row">
<div class="large-12 columns">
<h3 id="faq"><a href="#faq">FAQ</a></h3>
<h4 id="benchmarks">What about benchmarks?</h4>
<p>Quality of implementation matters — no argument there — and you should do your due diligence. That said, you need to <i>test on your own hardware and with realistic traffic patterns</i> to get an accurate picture of what works best for your specific workload. Don't trust outdated benchmarks, update your OpenSSL libraries, update your server, and run the tests.</p>
<h4 id="ops-cost">TLS operational costs are still higher, right?</h4>
<p>Not necessarily. Once you enable and optimize your TLS stack you're also well on your way to deploying HTTP/2. Unlike HTTP/1.1, HTTP/2 requires only a single connection per origin, which means fewer sockets, memory buffers, TLS handshakes, and so on. As a result, it may well be the case that you will be able to <a href="https://www.neotys.com/blog/performance-of-spdy-enabled-web-servers/">handle more users with fewer resources</a>.</p>
<h4 id="latency">TLS still adds an extra RTT; can we fix that?</h4>
<p>One possible route is to leverage TCP Fast Open, which would allow us to send the ClientHello within the TCP SYN packet — that would cut another RTT. In the meantime, both <a href="https://www.ietf.org/proceedings/88/slides/slides-88-tls-4.pdf">TLS 1.3</a> and QUIC are experimenting with "zero-RTT" handshake mechanisms. See <a href="https://docs.google.com/document/d/1g5nIXAIkN_Y-7XJW5K45IblHd_L2f5LTaDUDwvZ5L6g/edit">QUIC crypto doc</a> and <a href="https://www.youtube.com/watch?v=hQZ-0mXFmk8">this GDL episode</a> for a general introduction to QUIC.</p>
<h4 id="ciphersuite">Which ciphersuite should I be using?</h4>
<p>Mozilla maintains a wiki page <a href="https://wiki.mozilla.org/Security/Server_Side_TLS#Recommended_Ciphersuite">with a recommended ciphersuite list</a> and server configuration tips.</p>
<h4 id="resumption">If TLS False Start is enabled, do I need resumption?</h4>
<p>Both resumption and TLS False Start eliminate an extra roundtrip from the TLS handshake. However, resumption also allows you to skip the asymmetric handshake crypto by reusing parameters from a previous session — this saves CPU cycles. In other words, yes you need both.</p>
<h4 id="cluster">I run a multi-server deployment. Any tips?</h4>
<p>Ensure you have a shared session cache to get a good cache hit rate on resumed sessions across different servers. Also, ensure you expire and rotate your sessions and session ticket keys in a secure manner, <a href="https://www.imperialviolet.org/2013/06/27/botchingpfs.html">especially when forward secrecy is enabled</a>.</p>
<h4 id="cert-cost">What about certificate costs?</h4>
<p>You can get free certificates for any use from <a href="https://letsencrypt.org/">Let’s Encrypt</a>. If you need EV verification, then you will have to pay a bit extra. Use your favorite search engine to look for and evaluate the available options. The security and integrity of your visitors' data is worth every penny!</p>
<h4 id="ecc">What about Elliptic Curve Cryptography (ECC) certificates?</h4>
<p>ECC certificates offer <a href="https://casecurity.org/2014/06/10/benefits-of-elliptic-curve-cryptography/">stronger security and smaller certificates</a> - e.g. a 256-bit ECC key is equivalent to a 3072-bit RSA key. However, many clients do not support <a href="https://en.wikipedia.org/wiki/Elliptic_Curve_DSA">ECDSA</a>, which means that the server should support both RSA and ECDSA, and some popular servers do not support dual certificate deployments. Consult the documentation of your server to see if RSA+ECDSA is a supported option.</p>
<h4 id="crime-breach">What about CRIME and BREACH attacks?</h4>
<p><a href="https://en.wikipedia.org/wiki/CRIME">CRIME</a> is an attack against compression at the TLS layer. All modern user agents disable TLS compression, but it is still recommended that you disable TLS compression on your server. <a href="https://en.wikipedia.org/wiki/BREACH_(security_exploit)">BREACH</a>, on the other hand, is an attack against compression on top of TLS (e.g. HTTP compression) and must be mitigated both at the server and application levels - <a href="https://community.qualys.com/blogs/securitylabs/2013/08/07/defending-against-the-breach-attack">read more</a>.</p>
<h4 id="migrate">How do I migrate my existing site to HTTPS?</h4>
<p>Checkout the <a href="https://www.youtube.com/watch?v=cBhZ6S0PFCY">HTTPS Everywhere presentation</a> (<a href="https://docs.google.com/presentation/d/15H8Sj-Zol1tcum0CSylhmXns5r7cvNFtzYrcwAzkTjM/present">slides</a>) from Google I/O to learn the best practices and the steps to safely migrate your existing content to HTTPS.</p>
<h4>Why do we need HTTPS everywhere?</h4>
<p>Every unencrypted HTTP request reveals information about user’s behavior. Today, there is no such thing as insensitive web traffic - <a href="https://https.cio.gov/everything/">read more</a>.</p>
<h4 id="more">Where can I learn more about TLS performance?</h4>
<ul>
<li><a href="https://www.youtube.com/watch?v=0EB7zh_7UE4">Is TLS Fast Yet?</a> video from Velocity SC 2014 (<a href="http://bit.ly/fastTLS">slides</a>).
<li><a href="http://www.amazon.com/gp/product/B00FM0OC4S/ref=s9_simh_gw_p351_d2_i1">High Performance Browser Networking</a> contains a <a href="http://hpbn.co/tls">full chapter on TLS performance</a>.
</ul>
</div>
<hr />
</div>
<div class="row">
<div class="large-12 medium-12 small-12 columns right">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="https://istlsfastyet.com" data-text="TLS has exactly one performance problem: it is not used widely enough. Everything else can be optimized." data-size="large">Tweet</a>
<ul class="button-group right">
<li><a href="https://twitter.com/igrigorik" class="tiny button">@igrigorik</a></li>
<li><a href="https://github.com/igrigorik/istlsfastyet.com" class="tiny button success">View on GitHub</a></li>
</ul>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-71196-12', 'istlsfastyet.com');
// anonymize user IPs (chops off the last IP triplet)
ga('set', 'anonymizeIp', true);
// forces SSL for collection even if the page were somehow loaded over http://
ga('set', 'forceSSL', true);
ga('send', 'pageview');
</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src='https://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</body>
</html>