Our TFS is operated using HTTPS. How do I configure Timetracker for that?
TFS Timetracker supports HTTPS.
In this article we consider a problem which you can get setting up HTTPS protocol for your Team Foundation Server.
If you are using self-signed SSL certificate most probably your browser will warn you about that and you will need to add security exception for this address.
In this situation Visual Studio (and TFS Timetracker) will not connect to TFS hosted there with message
TF31002: Unable to connect to this Team Foundation Server: https://machinename:443/tfs.
Possible reasons for failure include:
- The name, port number, or protocol for the Team Foundation Server is incorrect.
- The Team Foundation Server is offline.
- The password has expired or is incorrect.
Technical information (for administrator):
The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
To solve this problem you need to say to your OS that this connection is trusted. To do this follow several steps:
- Export your certificate into the file with extension ".pfx" from IIS where Team Foundation Server is hosted.
- Copy this certificate to your machine, right click it and click "Install PFX" (and to all machines which connect to Team Foundation Server)
- In the wizard on the first step select Store Location (we recommend to select Local Machine)
- On the step "Certificate Store" select radio "Place all certificates in the following store", click Browse... and select "Trusted Root Certification Authorities"
- After finishing this wizard restart Visual Studio and TFS Timetracker
Now TFS Timetracker and Visual Studio will connect to Team Foundation Server without errors.