I have some legacy code on F#
let response =
Http.Request (
ArtifactoryUrl,
silentHttpErrors = true,
httpMethod = "POST",
body = HttpRequestBody.TextRequest requestJson,
headers = [
HttpRequestHeaders.BasicAuth ArtifactoryUserName ArtifactoryPassword
HttpRequestHeaders.ContentType "application/json"
HttpRequestHeaders.Accept "application/json"
]
)
Starting from some time, it failed with the following error
exception: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
I suspect that it is due to recent web server limitation to TLS 1.2 only. How can i fix it? How can i select TLS1.2 only? Any help here will highly appreciated!