Default SecurityProtocol in .NET 4.5

前端 未结 17 1396
一生所求
一生所求 2020-11-22 03:24

What is the default security protocol for communicating with servers that support up to TLS 1.2? Will .NET by default, choose the highest security

17条回答
  •  被撕碎了的回忆
    2020-11-22 04:13

    You can override the default behavior in following registry:

    Key  : HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 
    Value: SchUseStrongCrypto
    Type: REG_DWORD
    Data : 1
    

    and

    Key  : HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\.NETFramework\v4.0.30319
    Value: SchUseStrongCrypto
    Type: REG_DWORD
    Data : 1
    

    For details, please see the implementation of ServicePointManager.

提交回复
热议问题