Search code examples
caddycaddyfiletls1.1

How to enable TLS 1.1 inside a Caddyfile with Caddy 2


I have this current Caddyfile configuration:

example.com {
        reverse_proxy localhost:3000
}

Using Caddy 2, how can I enable TLS 1.1 or even TLS 1.0 within this configuration?

I already saw that there is the tls configuration but I didn't succeed to make it works.


Solution

  • Caddy 2 doesn't support neither TLS 1.1 nor TLS 1.0. The minimum version is TLS 1.2 as you can see in the documentation in TLS directive which states

    protocols: specifies the minimum and maximum protocol versions. Default min: tls1.2. Default max: tls1.3

    In tls: Remove support for TLS 1.0 and TLS 1.1 you can see the commit where they were removed during the development of Caddy 2.