Caddy tls configure problem

I want to use the email to register the certificate, can configure the maximum and minimum range of the encryption protocol version. Is there any way to achieve this?

Hi @faritor,

Set your email with the -email CLI flag:

https://caddyserver.com/docs/cli#email

Or per site with the tls directive:

https://caddyserver.com/docs/tls#syntax

Which also allows for configuration of the min/max protocol with the protocols subdirective:

https://caddyserver.com/docs/tls#protocols

No, you don’t understand. I want to use email to register the certificate and configure the encryption protocol version. I refer to the official website documentation, but I have not found a suitable solution.

    demo.mydomain.com {
        tls demo@domail.com {
               protocols tls1.0 tls1.2
        }
    }

this is wrong

Try both separately.

example.com {
  tls email@example.com
  tls {
    protocols tls1.0 tls2.0
  }
}

Solved my problem, thank you very much

1 Like

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