centos6 - Make SSL faster on Linux CentOS with Apache 2.4 OpenSSL 1.0 -


colleagues!

well, huge problem speed of ssl authentication. since move website ssl, googlebot reduce indexing of website, because ssl negotiation below value got webpagetest.org:

url: https://www.musiconline.com.br/jorge-e-mateus/alcapao/

host: www.musiconline.com.br

error/status code: 200

client port: 0

start offset: 0.735 s

dns lookup: 34 ms

initial connection: 170 ms

ssl negotiation: 531 ms

time first byte: 311 ms

content download: 178 ms

bytes in (downloaded): 13.2 kb

bytes out (uploaded): 0.4 kb

look, "ssl negotiation" in 531ms, big value.

someone know how can solve issue?


i verified mod_spdy, however, can't install because follow message in linux centos 6, apache 2.4:

root@server1 [/home/login/src]# rpm -u mod-spdy-*.rpm

warning: mod-spdy-beta_current_x86_64.rpm: header v4 dsa/sha1 signature, key id 7fac5991: nokey

error: failed dependencies:

    httpd >= 2.2.4 needed mod-spdy-beta-0.9.4.3-420.x86_64      mod_ssl >= 2.2 needed mod-spdy-beta-0.9.4.3-420.x86_64 

root@server1 [/home/login/src]# httpd -v

server version: apache/2.4.12 (unix)

server built: mar 21 2015 10:58:04

cpanel::easy::apache v3.28.4 rev9999


root@server1 [/home/molbr/src]# uname -a

linux server1.musiconline.com.br 2.6.32-431.20.3.el6.x86_64 #1 smp thu jun 19 21:14:45 utc 2014 x86_64 x86_64 x86_64 gnu/linux


thanks assistance.

initial connection: 170 ms

ssl negotiation: 531 ms

looking @ packet capture can see after initial tcp handshake client starts handshake , takes long time server send necessary data (serverhello, certificates...). these data need 5 packets , due various tcp magic , os tuning last packet send once got acknowledgements previous packets. in detail tcp magic might tcp slow start fixed initial congestion windows of 4 centos version use (see https://www.igvita.com/2011/10/20/faster-web-vs-tcp-slow-start/).

what can do: fix certificate chain. if @ ssllabs report see "chain issues: contains anchor" means send root certificate though root certificate ignored client , instead trusted ca built client used (trust chain must built local trust!). if fix configuration removing root certificate data sent server shorter , not run slow-start problem.


Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -