Failing server certificate verification during git clone #31

Closed
opened 2018-10-10 13:23:39 +02:00 by mishi · 2 comments
mishi commented 2018-10-10 13:23:39 +02:00 (Migrated from git.mattzz.de)

On my newly set up RPi I get the following message when trying to close the git repo. How can it be worked-around?

pi@eyesinthedark:~/halloween $ git clone https://mattzz.no-ip.org:3000/mattzz/halloween.git
Cloning into 'halloween'...
fatal: unable to access 'https://mattzz.no-ip.org:3000/mattzz/halloween.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
On my newly set up RPi I get the following message when trying to close the git repo. How can it be worked-around? ``` pi@eyesinthedark:~/halloween $ git clone https://mattzz.no-ip.org:3000/mattzz/halloween.git Cloning into 'halloween'... fatal: unable to access 'https://mattzz.no-ip.org:3000/mattzz/halloween.git/': server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none ```
mattzz commented 2018-10-10 15:47:51 +02:00 (Migrated from git.mattzz.de)

export GIT_SSL_NO_VERIFY=1

or

git config --global http.sslverify false

This has severe security implications as this is a global setting for all repos...

So better restrict it to the current repo only:

git config http.sslVerify false

https://stackoverflow.com/questions/9008309/how-do-i-set-git-ssl-no-verify-for-specific-repos-only

`export GIT_SSL_NO_VERIFY=1` or `git config --global http.sslverify false` This has severe security implications as this is a global setting for all repos... So better restrict it to the current repo only: `git config http.sslVerify false` https://stackoverflow.com/questions/9008309/how-do-i-set-git-ssl-no-verify-for-specific-repos-only
mishi commented 2018-10-10 19:45:48 +02:00 (Migrated from git.mattzz.de)

Super, thanks. I first used env GIT_SSL_NO_VERIFY=true git clone https://mattzz.no-ip.org:3000/mattzz/halloween.git to clone it and then configured git config http.sslVerify false

Super, thanks. I first used `env GIT_SSL_NO_VERIFY=true git clone https://mattzz.no-ip.org:3000/mattzz/halloween.git` to clone it and then configured `git config http.sslVerify false`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
mattzz/halloween#31
No description provided.