I've been using git-tfs for almost 5 years, and then one day I got the following error when running git tfs fetch
:
TF400324: Team Foundation services are not available from server https://tfs.company.com/tfs/foo.
Technical information (for administrator):
The underlying connection was closed: An unexpected error occurred on a send.
The underlying connection was closed: An unexpected error occurred on a send.
Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host
I even opened Fiddler to see what was going on, and literally the TFS server disconnected the socket when my laptop attempted to connect.
After talking with one of our server admins I discovered that support for TLS 1.0 had been disabled on our TFS servers, and I think I've got my smoking gun. I think my laptop is attempting to connect to our servers using TLS 1.0, which of course causes the server to close the socket.
How can I change the version of TLS that git tfs
uses when connecting to Team Foundation Services?