I’m trying to set up letsencrypt on a couple of my personal domains. I’ve used the same exact configuration for two: semianalog.com and misc.c4757p.com. On misc.c4757p.com, using the configuration recommended here, I get errors from Firefox and Chrome when trying to access the site - Firefox says SSL_ERROR_RX_UNEXPECTED_NEW_SESSION_TICKET; Chrome’s message is much more vague.
I only see a few references to this on the interwebs and everyone says to change ssl_session_tickets off
to ssl_session_tickets on
. That does indeed work, and that’s what I have in the configuration now, but I’d rather not have to do that. There must be a reason why it works on one of the sites and not the other!
nginx configuration for the broken site:
server {
listen 80;
listen [::]:80;
server_name misc.c4757p.com;
return 301 https://$http_host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
ssl on;
ssl_certificate /etc/letsencrypt/live/misc.c4757p.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/misc.c4757p.com/privkey.pem;
include snippets/ssl-params.conf;
root /srv/www/misc;
...
The working one is identical except for server_name semianalog.com www.semianalog.com
, the path to the cert and key, and the server root path. The certs were created identically as well, using the command from that article.
snippets/ssl-params.conf is:
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
ssl_ecdh_curve secp384r1;
ssl_session_cache shared:SSL:10m;
#ssl_session_tickets off;
ssl_session_tickets on;
ssl_stapling on;
ssl_stapling_verify on;
resolver 8.8.8.8 8.8.4.4 valid=300s;
resolver_timeout 5s;
add_header Strict-Transport-Security "max-age=63072000; includeSubdomains; preload";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
ssl_dhparam /etc/ssl/certs/dhparam.pem;
Here’s the output of openssl s_client -connect misc.c4757p.com:443 -servername misc.c4757p.com
with and without ssl_session_tickets
:
https://misc.c4757p.com/session_tickets_on.txt
https://misc.c4757p.com/session_tickets_off.txt
Anyone see the problem?
P.S. “Title is invalid; try to be a little more descriptive” is evil and the same can be said to whoever wrote that message. I was able to shut it up by removing the actual error message text from the title. WTF.