When we do git pull command like this:
[root@bswen-k8s-app5 ~]# git clone https://184.108.40.206/bswen/argocd-example-apps
we get this :
Cloning into 'argocd-example-apps'... fatal: unable to access 'https://220.127.116.11/bswen/argocd-example-apps/': SSL certificate problem: self signed certificate
The core error is : SSL certificate problem: self signed certificate
Why do this error happen? The git repository does exist ,and the url is correct, I promise!!!
- git version 2.21.1 (Apple Git-122.3)
You can connecting to a private gitlab repository or github enterprise repository, the certificate is self-signed, git can not verify the self-signed certifiate if you have not properly load the certificate in the local system.
You can disable the certificate verification with git configurations.
git config --global http.sslVerify false
➜ git clone https://18.104.22.168/bswen/argocd-example-apps Cloning into 'argocd-example-apps'... remote: Enumerating objects: 109, done. remote: Counting objects: 100% (109/109), done. remote: Compressing objects: 100% (75/75), done. remote: Total 109 (delta 25), reused 109 (delta 25), pack-reused 0 Receiving objects: 100% (109/109), 19.25 KiB | 6.42 MiB/s, done. Resolving deltas: 100% (25/25), done. ➜