Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trusted SSL certificate: Git clone not working #2193

Closed
ghost opened this issue Jul 14, 2020 · 1 comment
Closed

Trusted SSL certificate: Git clone not working #2193

ghost opened this issue Jul 14, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 14, 2020

Hello,

I have some SSL certificate problem when I clone:

$ git clone https://localhost:10443/root/bookmarks.git
Cloning into 'bookmarks'...
fatal: unable to access 'https://localhost:10443/root/bookmarks.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

I tried to follow instructions to add this to my trusted SSL certificates but I don't get it right.

Can someone please help me? I am using Linux Mint 19.
Thanks

@cwildfoerster
Copy link
Contributor

cwildfoerster commented Aug 11, 2020

Possibly not a docker-gitlab problem.

You may try git -c http.sslVerify=false clone https://localhost:10443/root/bookmarks.git but the correct solution would be to add your ca certificate to your computers trust store.

$ mkdir -p /usr/local/share/ca-certificates/extra
$ cp your-ca-cert.crt /usr/local/share/ca-certificates/extra/your-ca-cert.crt
$ update-ca-certificates

https://stackoverflow.com/questions/11621768/how-can-i-make-git-accept-a-self-signed-certificate

@ghost ghost closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant