Error Occurred While Connecting To Ssl

Posted By admin On 30.10.19

The SSL/TSL certificate considers connection invalid if the browser system and the Web server do not have their clocks set to nearly the same time. In such case, you will see “The connection is not private” message on your device.

Error An Ssl Error Occurred

A last week I wrote about when TFS is configured to use a self-signed SSL certificate for HTTPS. Well, after I got that part working, I found a new problem while trying to configure a TFS build agent that would talk to my self-signed SSL certificate TFS machine.When you are installing the TFS build agent on Windows, there are two steps: 1) download and extract the build agent zip and 2) run config.cmd to configure the agent. (Want a walk-through for installing the TFS build agent?.) With the self-signed SSL cert TFS, I kept getting an error on the config.cmd portion of the agent install that simply said “an error occurred while sending the request “. C:agentconfig.cmd Connect:Enter server URL authentication type (press enter for Integrated) Connecting to server.An error occurred while sending the request.Failed to connect. Try again or ctrl-c to quitEnter server URL The solution was simple and all that needed to happen was to add the self-signed certificate to the trusted root certificate store. After that the installation runs as expected. Basically, the TFS agent configuration script was having the same problem with that self-signed SSL certificate as Git was.The instructions for how to get the certificates and install them, check out.

The script that fixes this problem is 03-import-iis-self-signed-cert-from-file.ps1. After you’ve run 03-import-iis-self-signed-cert-from-file.ps1, you can re-run config.cmd to configure the TFS build agent and it should work.HINT: Definitely run the build agent service as a user rather than Network Service because you’re going to need to fix a few things that will require you to log in as the build user account. The Build Agent Service Won’t RunOk. So you’ve got the agent service configured. You start the agent service and if you look at the list of Windows Services (services.msc), the service is running. But if you go to the Agent Pool in TFS, that agent isn’t running.

Error Occurred While Connecting To Ssl

Error Occurred While Connecting To Ssl

That’s not good.If you look at the logs (c:agentdiagAgent.log), you see an error that says2017-12-19 20:55:26Z ERR VisualStudioServices GET request to failed. System.Net.Http.HttpRequestException: An error occurred while sending the request.