SSLCertVerificationError how to disable SSL Certification

RantoB
Valued Contributor

Hi,

How is that possible to disable SSL Certification.

With databricks API I got this error :

SSLCertVerificationError
 
SSLCertVerificationError: ("hostname 'https' doesn't match either of '*.numericable.fr', 'numericable.fr'",)
 
MaxRetryError: HTTPSConnectionPool(host='https', port=443): Max retries exceeded with url: //adb-XXXXXXXXXXXXXX.azuredatabricks.net/api/2.0/workspace/mkdirs (Caused by SSLError(SSLCertVerificationError("hostname 'https' doesn't match either of '*.numericable.fr', 'numericable.fr'")))

when executing the following script

response = requests.post(
  'https://{}/api/2.0/workspace/mkdirs'.format(DOMAIN),
  headers={'Authorization': 'Bearer {}'.format(TOKEN)},
  json={"path": "/Shared/released_notebooks/modules"}
)

Thanks