Cannot set app to use system default TLS version by adding appcontext settings in web.config

前端 未结 1 1573
谎友^
谎友^ 2021-01-13 07:43

According to .net guidance of TLS protocol programming, it suggests to config security via appcontext switch when your project targets on .net 4.6. This way works when add a

相关标签:
1条回答
  • 2021-01-13 08:29

    AppContext switches usage in web config file:

    <appSettings>
        <add key="AppContext.SetSwitch:Switch.System.Net.DontEnableSchUseStrongCrypto" value="false" />
        <add key="AppContext.SetSwitch:Switch.System.Net.DontEnableSystemDefaultTlsVersions" value="false" />
    </appSettings>
    

    https://github.com/dotnet/docs/issues/6675

    0 讨论(0)
提交回复
热议问题