requests / requests-kerberos

An authentication handler for using Kerberos with Python Requests.
Other
289 stars 101 forks source link

SSL: CERTIFICATE_VERIFY_FAILED #153

Closed wilberh closed 4 years ago

wilberh commented 4 years ago

I'm using this package as a plugin to another package (hdfs).
To connect to a hadoop NameNode I've done -

kinit (to obtain a Kerberos ticket), https protocol to connect to the host, passing an Explicit Principal (principal=user@realm:password),

But I'm getting this error - Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),)

Has anyone ran into this problem?

jborean93 commented 4 years ago

This is nothing to do with requests-kerberos but the underlying requests session/request that you are generating. This library only handles the authentication aspect which is independent of whether HTTP or HTTPS is used.

wilberh commented 4 years ago

You're right; I just found the solution online.
https://saagie.zendesk.com/hc/en-us/articles/360021384151-Read-Write-files-from-HDFS

import requests session = requests.Session() session.verify = False