In my web application,how to disable TLS 1.0 and 1.1 and enable TLS v1.2 and use SHA2 instead of SHA1 to establish a secure channel
Make sure you are using the latest .NET framework.
https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls
Update Windows registry on the server to accept only TLS 1.2.
https://docs.microsoft.com/en-us/windows-server/security/tls/tls-registry-settings
Thank You :)