Fix SSL certificate check warnings
Running the Python script in this repository yields warnings pertaining to failed SSL certificate checks. Worst part being those warnings were initially errors, but waived through setting the API parameter constructor parameter ssl_verify
to False.
Rationale
Certificate issues should be handled by copying the relevant certificate and applying the appropriate settings.
Transcript
/home/dev/.local/lib/python3.9/site-packages/urllib3/connectionpool.py:1045:
InsecureRequestWarning: Unverified HTTPS request is being made to host
'git.cloud.safran'. Adding certificate verification is strongly advised.
See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
Relevant source code:
gl_api = gitlab.Gitlab(
url=gl_url, private_token=gl_token, ssl_verify=ssl_verify)