TLS issue, unable to config tls 1.2 with .net 4.7.2 application

vidya v 1 Reputation point
2022-05-16T06:33:49.043+00:00

We have our asp.net application in .net framework 4.0 and 4.7.2.

when we host in IIS and run it, we are getting error in client side (Your TLS security settings aren’t set to the defaults, which could also be causing this error) with https access.

We need our application to use tls1.2 by default by disabling other tls versions.

please help.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,288 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Lan Huang-MSFT 25,871 Reputation points Microsoft Vendor
    2022-05-16T08:58:43.227+00:00

    Hi @vidya v ,

    Your TLS security settings aren’t set to the defaults, which could also be causing this error

    To Fix your TLS security settings aren’t set to the defaults follow these easy steps:

    1. Navigate to Run by holding Windows+R Keys.
    2. Type Control and press Enter.
    3. Click on Internet Options.
    4. Click on Advanced Tab, Scroll down and navigate to TLS Options.
    5. Restart your browser and check. if same problem is persisted then Follow step-2.

    You can refer to this post.
    https://answers.microsoft.com/en-us/windows/forum/all/tls-security-settings-arent-set-to-the-defaults/3068d917-7989-41b4-8330-99a4bdedc76d

    There are three tasks for enabling TLS 1.2 on clients:

    • Update Windows and WinHTTP.
    • Ensure that TLS 1.2 is enabled as a protocol for SChannel at the operating system level.
    • Update and configure the .NET Framework to support TLS 1.2(For TLS 1.2, target .NET Framework 4.7 or later on your application).
      It is better to add the following in web.config: <httpRuntime targetFramework="4.7.2" />

    You can refer to these documents.
    How to enable TLS 1.2 on clients
    Transport Layer Security (TLS) best practices with the .NET Framework
    Best regards,
    Lan Huang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments