I have an ASP.NET MVC application that makes call to an external service that support only TLS1.2 protocol.
When the code makes the call I get this error:
System.Net.Http.HttpRequestException HResult=0x80131500 Message=An error occurred while sending the request.
WebException: The request was aborted: Could not create SSL/TLS secure channel.
It seems that my side (the client one) does not support TLS1.2.
My question are:
- How can I enable TLS1.2 in a .NET 4.7 application?
- Is it something that I can force in the code?
- Consider that the app will be deployed on an Azure APP SERVICE, so I cannot manage IIS settings machine registry stuff.
Thanks, \sergio