-
Notifications
You must be signed in to change notification settings - Fork 58
"unable to verify the first certificate" on first run - Linux - Ubuntu #296
Comments
That output is coming out of node.js. A quick search revealed: http://stackoverflow.com/questions/31673587/error-unable-to-verify-the-first-certificate-in-nodejs |
Perhaps we need to do the inject call? Will look into it. |
I cannot install the package ssl-roo-cas to try to inject
|
I'd like to "upvote" the option of adding the inject if this will fix the issue and happy to help with some testing. We have now added the full chain to the netscaler so that when we make a request to the server the full certificate chain is supplied but we now get the issue of "Message: self signed certificate in certificate chain" when trying to connect to TFS when configuring the build agent. We used Microsoft active directory certificate services to create a root and intermediate certificate and then created the server certificate afterwards. It basically means if you configure SSL with a self signed certificate chain, you cannot use the cross platform build agent or the TFS command line to upload custom build tasks. This is a huge blocker for us. |
Can you try the new agent that is replacing this one? https://github.com/Microsoft/vsts-agent |
Yes, I tried two previews. |
Tried this on a Mac running OS X Yosemite and v2.101.0 Preview I hit a problem running the agent as a service. The failure was that the Library directory for my user account does not have a sub directory called LaunchAgents. The LaunchAgent folder is a sub directory of the root Library folder.
As a workaround i created a LaunchAgents directory in /Users/Andy/Library/ and the service started, successfully authenticating using negotiate over HTTPS. I created a new build definition for a TFSGit repo to run a hello world shell script which queued and ran without any issues. My only comment here would be that some lines of the build output log, in TFS web access, are impossible to read as they are in an aqua colour. Example of two lines below that where in aqua colour.
Finally, I just noticed what looks like a hardcoded value in the build log:
I will raise these issues on the github page for thew new agent. Keep up the good work! |
I tried the new agent Preview 5 v2.101.0 on Ubuntu.(https://github.com/Microsoft/vsts-agent)
However my problem persists: when schedule a build:
|
You'll have to provide more info then Y.
|
@rusergeev make sure you configured the agent against the server url |
@ericsciple, I registered against http://tfs.company.com/tfs, that is an error message, which also display COLLECTION1. My projects in this COLLECTION1, which is out of my control. |
Anyway, we got the first sertificate solved by adding full certificate chain to trusted certificates. |
Is there anything I can add to docs? Can you detail the steps and commands? It might help someone else ... |
@bryanmacfarlane, it is maybe a good idea to add an SSL connection check to a troubleshooting section, if you have any. I will update you with my procedure (couple lines) after Memorial Day, when got back to my office. |
I am trying to install the agent on Ubuntu got an issue:
when running ./run.sh it give me "unable to verify the first certificate"
However my Linux talks SSL with the TFS server: root certificate is in ca-sertificates and the issuing and TFS server certificates are trusted.
Any suggestion for troubleshooting?
What exactly could not verify the first certificate?
And what is the first certificate?
I cannot register the agent because of this.
The text was updated successfully, but these errors were encountered: