Skip to content

[FR] Disable TLSv1.2 #1303

Closed
Closed

Description

@andreasschulze

Current behavior
in unbound.conf, I can configure TLS1.2 and TLSv1.3 ciphers. But I can't configure, which TLS versions must be used.

Describe the desired feature
In some cases, if client and server side both support TLSv1.3, it may be usefull to explicit disable TLSv1.2. This is currently not possible. I also think, there are documents / drafts in the IETF, saying "TLS1.3 is the preferred protocol" but cant find a reference.

Potential use-case
I personally think about a private patch (I build unbound from source) in the spitit of this code: https://github.com/NLnetLabs/unbound/blob/master/util/net_help.c#L1254-L1261 but repeated for "we have TLS1.3, so disable TLS1.2"

Before writing such private patch, I like to ask if this makes sense at all

Activity

  1. wcawijngaards commented on Jul 17, 2025

    @wcawijngaards
    Member

    I have implemented the suggestion. I also believe that TLSv1.3 is deployed fairly widely so that this patch makes sense. Thanks for the heads up!

  2. andreasschulze commented on Jul 17, 2025

    @andreasschulze
    Author

    nice :-)

  3. andreasschulze commented on Jul 17, 2025

    @andreasschulze
    Author
  4. added a commit that references this issue on Jul 17, 2025
    b6e52c0
  5. wcawijngaards commented on Jul 17, 2025

    @wcawijngaards
    Member

    The similar issue for NSD is fixed with NLnetLabs/nsd@e2aaa7c . OpenSSL 1.1 from 2018 has TLSv1.3 support, so I think this is not likely to be an issue. Until people want to provide DoT to legacy clients, but that also seems unlikely, then it would need an option for allowing the older. For use of nsd-control, and unbound-control, those use the same openssl as the server, so have the same availability of TLS versions, so that works regardless.

  6. gthess commented on Feb 16, 2026

    @gthess
    Member

    @andreasschulze, see #1406. TLSv1.2 is again enabled by default but you could explicitly turn it off with the new tls-protocols option in that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions