Skip to content

mark EncryptionPolicy.NoEncryption as obsolete #65545

Closed

Description

@wfurt

The EncryptionPolicy now looks like:

    public enum EncryptionPolicy
    {
        RequireEncryption = 0,
        AllowNoEncryption = 1,
        NoEncryption = 2,
    }

Creating SslStream and forcing no encryption is just pure weird. While old SSL/TLS versions permitted it and while it may be useful for debugging, nobody should really be using it in production at this point. AllowNoEncryption is somewhat on the same boat. NULL encryption is no longer available as of Tls 1.3.

We marked Ssl2 and Ssl3 SslProtocols as obsolete because they are weak. No encryption is even worse from security prospective.

related to #26210

Activity

  1. ghost added
    untriaged
    on Feb 18, 2022
  2. added
    breaking-change
    on Feb 18, 2022
  3. added this to the 7.0.0 milestone on Feb 18, 2022
  4. added
    enhancement
    and removed
    untriaged
    on Feb 18, 2022
  5. wfurt commented on Feb 24, 2022

    @wfurt
    MemberAuthor

    I expect you would be OK with SslStream expecting encryption @blowdart? (and not allowing NULL unless somebody tries hard e.g. marking AllowNoEncryption as obsolete as well)

  6. blowdart commented on Feb 24, 2022

    @blowdart
    Contributor

    That becomes more interesting. Null ciphers are, as you say, handy for debugging, but given TLS1.3 threw it all away I have mixed feelings. I'd say yes, do away with it all, but do it early now and see if anyone screams.

  7. self-assigned this
    on Mar 7, 2022
  8. added a commit that references this issue on Mar 7, 2022
    bca9af8
  9. ghost added
    in-pr
    on Mar 7, 2022
  10. added a commit that references this issue on Mar 8, 2022
    00ed84a
  11. ghost removed
    in-pr
    on Mar 8, 2022
  12. ghost locked as resolved and limited conversation to collaborators on Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Securitybreaking-changeenhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions