'SSL certificate problem: unable to get local issuer certificate AZURE DEVOPS
I have a problem... My code in Gitlab, Pipeline in Azure DevOps. I use classic editor. When i start pipeline i have error "fatal: unable to access 'fatal: unable to access 'https://my.repos.example:***.git/': SSL certificate problem: unable to get local issuer certificate" Please help me!
Solution 1:[1]
If you want to cancel check azure devops ssl certificate, you need to go a variable group your pipeline and add GIT_SSL_NO_VERIFY = 1
Solution 2:[2]
Note: You could disable SSL certificate validation in Git or tick the checkbox
accept untrusted SSL certificates
, but that is definitely not the preferred practice for security.
In my case, I had Github enterprise repository which was giving this error. Try below steps:
- Enable
git
to useschannel
:git config --global http.sslbackend schannel
- Export the certificates from your browser in the
Base-64 encoded X.509 (.CER)
format.
Note: In case of windows os, you can import
.p7b
files by right clicking the > install certificates.
Repeat the step-2 for all the intermediate certificate chain.
Copy and append all the certificates as obtained above.
Find out the Certificate store of the
git
:git config --list --show-scope
The path will be mentioned in system scopehttp.sslcainfo
.Using a text editor (Notepad++) open
ca-bundle.crt
and copy paste the certificates from step-4 to the end of theca-bundle.crt
file and click Save.
Now retry the pipeline run.
Solution 3:[3]
For me this issue came up when attempting to clone a repository through Visual Studio 2019. Upon selecting the Azure option in the repository menu I then picked the codebase I wanted to clone. After this step I was prompted with an error of:
"SSL certificate problem: unable to get local issuer certificate"
I ran the git command setting up the global ssl backend:
> git config --global http.sslbackend schannel
And the next time I tried the steps listed above, all was well.
Solution 4:[4]
Just re-installing git worked for me. Try to uninstall and install git
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | kostukp96 |
Solution 2 | |
Solution 3 | Dharman |
Solution 4 | ARPIT TIWARI |