0

How to add custom certificate to git client?

I have certificate and i want to clone some project from gitlub.

But I has an error:

fatal: unable to access 'https://some.gitlub.url': Problem with the SSL CA cert (path? access rights?)

Windows analog: git config --global http."https://some.gitlub.url".sslCAInfo "work/gitlab.cer

1 Answer 1

2

You need to configure GIT to trust your certificate

$> git config --global http."https://some.gitlub.url".sslCAInfo ~/git-certs/cert.pem

It's recommended also to do:

$> git config --global --unset http.sslVerify
$> git config --global --list
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.