Azure DevOps Agent running on https failed with TLS 1.2 Issue
DalpheSDC opened this issue · 5 comments
Hi
Task TFVC - Check-in changes (Preview)
Version 2.25
When running on a agent using https to connect our on-premise instance behind a proxy. is failes with
"TF400324: Azure DevOps services are not available from server https://...-...--/tfs
Technical information (for administrator):
Anmodningen blev afslået: Der kunne ikke etableres en sikker kanal til SSL/TLS."
translate it can't established SSL/TLS save channel.
This is cause by missing upset of TLS 1.2 in the script
when I'm running this on the agent with port 8080 without SSL it work fine.
Sorry that i didn't give you feedback on the last issue I created, but had to much to do at work.
Regards
Peter
Windows 10 and Windows 2012 R2,
.NET 4.7.2
Powershell
Major Minor Build Revision
5 1 17134 858
normallye this is the line missing in the PowerShell
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12;
There is a Cert trusted amd the hostname match it.
##[debug]Agent.ProxyUrl=http://...
##[debug]Agent.CAInfo=C:\TFS\A2\sdcca.pem
##[debug]Agent.ClientCert=undefined
##[debug]expose agent certificate configuration.
##[debug]Agent.SkipCertValidation=undefined
##[debug]Agent.ProxyUrl=http://...
##[debug]Agent.CAInfo=C:\TFS\A2\sdcca.pem
##[debug]Agent.ClientCert=undefined
Hope this give you some ideas.
Fixed in: 2.2.6
I can confirm that it works perfect. thank you