How to change the protocols version?


(fanybook) #1

no examples in docs and https://github.com/caddyserver/examples

which is right?

tls xxx@xxx.com {
    protocols 1.0 1.2
}

or

tls xxx@xxx.com {
    protocols tls1.0 tls1.2
}

(Matthew Fay) #2

Hi @fanybook,

As part of the tls directive, setting protocols manually is documented here: https://caddyserver.com/docs/tls#protocols


(fanybook) #3

i known, but i need a example

Which of the following is right?

tls xxx@xxx.com {
    protocols 1.0 1.2
}

or

tls xxx@xxx.com {
    protocols tls1.0 tls1.2
}

this ?

tls xxx@xxx.com {
    protocols tls1.0 tls1.2
}

(Matthew Fay) #4

The correct parameters are exactly as listed on the docs page.

Protocols

The following protocols are supported, in descending order of preference:

  • tls1.2 (default min and max)
  • tls1.1
  • tls1.0

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

You can see the strings in use yourself in the source code, here:


(fanybook) #5

What i need is an accurate example, include the tls xxx@xxx.com { ... }.
There are no examples in the document.


(Matthew Fay) #6

Your own example above is valid. We welcome suggestions to update our documentation. Feel free to open an issue at https://github.com/mholt/caddy/issues/new and suggest an example to add to the doc.