我正在尝试在TFS中设置Webhook以连接到内部的HTTPS服务器,但是当我尝试测试URL时,出现以下错误:
System.Net.Http.HttpRequestException:发送请求时发生错误。
---> System.Net.WebException:请求被中止:无法创建SSL/TLS安全通道。
在System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)处
在System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)处
--- 内部异常堆栈跟踪的结尾 ---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)处
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)处
在Microsoft.VisualStudio.Services.ServiceHooks.Common.HttpActionTask.
"Could not create SSL/TLS secure channel" 错误是因为 TFS 使用 TLS 1.0 打开与远程服务器的连接,而该服务器仅接受 TLS 1.2 请求。
我们如何配置 Webhook 来使用 TLS 1.2?
System.Net.Http.HttpRequestException:发送请求时发生错误。
---> System.Net.WebException:请求被中止:无法创建SSL/TLS安全通道。
在System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult, TransportContext& context)处
在System.Net.Http.HttpClientHandler.GetRequestStreamCallback(IAsyncResult ar)处
--- 内部异常堆栈跟踪的结尾 ---
在System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)处
在System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)处
在Microsoft.VisualStudio.Services.ServiceHooks.Common.HttpActionTask.
"Could not create SSL/TLS secure channel" 错误是因为 TFS 使用 TLS 1.0 打开与远程服务器的连接,而该服务器仅接受 TLS 1.2 请求。
我们如何配置 Webhook 来使用 TLS 1.2?