Getting a perfect score at SSL Labs

How will this block be exactly translated into Cadyfile?

ssl_session_cache shared:SSL:10m;
ssl_session_timeout 10m;
ssl_protocols TLSv1.2;
ssl_prefer_server_ciphers on;
ssl_ciphers AES256+EECDH:AES256+EDH:!aNULL;
ssl_stapling on;
ssl_stapling_verify on;
ssl_dhparam ssl/dhparam.pem;
ssl_ecdh_curve secp384r1;

add_header Strict-Transport-Security "max-age=31536000; includeSubdomains";
add_header X-Frame-Options DENY;
add_header X-Content-Type-Options nosniff;
1 Like

I am busy at the moment but wanted to point you in the right direction at least: and will be the two directives you want.

Note that ssl_stapling and ssl_stapling_verify and ssl_dhparam and ssl_prefer_server_ciphers will not be relevant when configuring Caddy. Neither will ssl_session_cache or ssl_session_timeout.


Answering to myself, and for the records, this got me fairly close:

        header / {
                Strict-Transport-Security "max-age=31536000"
                X-XSS-Protection "1; mode=block"
                X-Content-Type-Options "nosniff"
                X-Frame-Options "DENY"
        tls {
                key_type rsa4096
                protocols tls1.2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.