Skip to content

Option to relax SNI validation #2403

@s-arash

Description

@s-arash

Checklist

  • I've searched the issue tracker for similar requests

Is your feature request related to a problem? Please describe.
We occasionally encounter TLS clients that send invalid SNIs. As some other TLS libraries accept such invalid SNIs, our customers expect us to work with their non-compliant TLS clients as well.

Describe the solution you'd like
I think a simple solution would be to add the option to configure the rustls server to accept (and ignore) invalid SNIs in ClientHello (similar to what was done for IP-addresses-as-SNI in #1881).

Describe alternatives you've considered
Modifying ClientHello before passing it to rustls was suggested, but given that the TLS handshake transcript will go into calculating the session master key, I don't think it's possible.

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