inconshreveable / slt

A TLS reverse proxy with SNI multiplexing in Go
Other
410 stars 57 forks source link

ssllabs grade capped at B #20

Open kmanley opened 4 years ago

kmanley commented 4 years ago

With current TLS config it's not possible to get higher than a B grade from ssllabs.com image

kmanley commented 4 years ago

this change gets it to an A

image

return &tls.Config{
        Certificates:             []tls.Certificate{cert},
        MinVersion:               tls.VersionTLS12,
        CurvePreferences:         []tls.CurveID{tls.CurveP521, tls.CurveP384, tls.CurveP256},
        PreferServerCipherSuites: true,
        CipherSuites: []uint16{
            tls.TLS_AES_128_GCM_SHA256,                      // TLS 1.3
            tls.TLS_AES_256_GCM_SHA384,                      // TLS 1.3
            tls.TLS_CHACHA20_POLY1305_SHA256,                // TLS 1.3
            tls.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,       // TLS 1.2
            tls.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,       // TLS 1.2
            tls.TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, // TLS 1.2
        },
    }, nil

image