microsoft / VSTSAgent.PowerShell

Tools for managing and automating your Azure DevOps Agents.
MIT License
29 stars 23 forks source link

Could not find SSL Certificate installation #25

Open jkjisha opened 4 years ago

jkjisha commented 4 years ago

I could not see the code installing the SSL certificate during the Agent configuration. Is it possible to include the code to install the SSL certificate in this module?

We are looking to use this module for our requirement to install the agent..

jwittner commented 4 years ago

Hi @jkjisha - curious what SSL certificate you're referring to here. Are you looking for the ssl client certificate functionality described here?

janis-veinbergs commented 1 year ago

git doesn't use SChannel for verifying trusts. If you happen to have custom CA, well, git uses openssl. Fear not, git and azure agent foresaw this thing. Git CAN use SChannel, it is just not the default.

As for installing devops agent, there is a parameter --gitusesschannel - this project doesn't seem to support it.

All of this is documented, even if you want to feed trust into git manually: Git get sources fails with SSL certificate problem (Windows agent only)