Certificate verify failed with python

Hi,

I try to access gitlab through API with python in windows 10.

import gitlab

gl = gitlab.Gitlab(r’gitlab_instance_url’, private_token=‘xxxxxxx’)
gl.auth()

gitlab_instance_url is internal gitlab instance url, which is LDAP
‘xxxxxx’ is api access token created in my account.

requests.exceptions.SSLError: HTTPSConnectionPool(host=‘gitlab_instance_url’, port=443): Max retries exceeded with url: /api/v4/user (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)’),))

What’s the possible reason? Or can someone provide sample code for gitlab api access using python?

Thanks in advance.