rverchere / gitlab-migrator

Scripts to help migrate gitlab from one instance to another (users, groups and projects)
Apache License 2.0
5 stars 7 forks source link

certificat error [SSL: CERTIFICATE_VERIFY_FAILED] gitlab-export.py #5

Open pcouas opened 6 months ago

pcouas commented 6 months ago

Hi, How could i avoid these error on gitlab-export.py requests.exceptions.SSLError: HTTPSConnectionPool(host='gitlab.seflhosted.subpart', port=443): Max retries exceeded with url: /api/v4/groups (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))

Thanks

rverchere commented 4 months ago

Hi,

Sorry to not answer, but I'm not using it anymore, the code is available "as is" without warranties.

The issue here seems related to a GitLab server where the TLS certificate is unknown / self-signed. As the code uses GitLab python module, maybe check here: https://python-gitlab.readthedocs.io/en/stable/api-usage-advanced.html#ssl-certificate-verification