ezbz / gitlabber

Gitlabber - clones or pulls entire groups tree from gitlab
MIT License
472 stars 78 forks source link

Ignore custom Gitlab certificates #67

Closed gchr closed 3 years ago

gchr commented 3 years ago

We are using an internal on-premises Gitlab instance with custom certificate. Is there a way (option?) to bypass the certificate verification?

` Traceback (most recent call last): File "/home/username/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen httplib_response = self._make_request( File "/home/username/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request self._validate_conn(conn) File "/home/username/anaconda3/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn conn.connect() File "/home/username/anaconda3/lib/python3.8/site-packages/urllib3/connection.py", line 362, in connect self.sock = ssl_wrapsocket( File "/home/username/anaconda3/lib/python3.8/site-packages/urllib3/util/ssl.py", line 386, in ssl_wrap_socket return context.wrap_socket(sock, server_hostname=server_hostname) File "/home/username/anaconda3/lib/python3.8/ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "/home/username/anaconda3/lib/python3.8/ssl.py", line 1040, in _create self.do_handshake() File "/home/username/anaconda3/lib/python3.8/ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1123)

`

ezbz commented 3 years ago

@gchr you can turn it off globally I think via:

git config --global http.sslVerify false

Also see reference in #35 which allows to provide a custom CA path

ezbz commented 3 years ago

Duplicate of #14