SSL slow on nginx

khav nginx-forum at nginx.us
Sat Jun 28 05:14:16 UTC 2014


For my site , ssl seems to be slow even though i got A+ on sslabs
(implemented ocsp stapling, Forward Secrecy , spdy) 

Here is the result from pingdom 

http://tools.pingdom.com/fpt/#!/cc2MfH/https://www.filterbypass.me/


Notice the high connect time and high ssl negociation time 


Here is my nginx conf 

server {
    listen       443 spdy default_server; #Change to 443 when SSL is on
	ssl on;
	ssl_certificate    /etc/ssl/filterbypass.me.crt; #(or .pem) 
    ssl_certificate_key    /etc/ssl/filterbypass.me.key.nopass;
	ssl_client_certificate /etc/ssl/intermediate.crt;
	ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
   ssl_ciphers
ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DSS;
    ssl_prefer_server_ciphers on;
	ssl_buffer_size 8k;
    ssl_session_cache shared:SSL:10m;
	ssl_dhparam /etc/ssl/dhparam.pem;
    ssl_session_timeout 10m;
	ssl_stapling on;
    ssl_stapling_verify on;
	ssl_trusted_certificate  /etc/ssl/trustchain.crt;
	resolver 8.8.8.8 8.8.4.4;
	add_header Strict-Transport-Security "max-age=31536000;
includeSubDomains";
  #rest of config goes here 
}

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,251277,251277#msg-251277



More information about the nginx mailing list