zulip/python-zulip-api

Cert Bundle might also be a directory

e7p opened this issue · 1 comments

e7p commented

When using the requests API with the certificate parameter, it is also possible to enter e.g. /etc/ssl/certs as a certificate bundle and it will result in verifying against all certificates lying in this path.

Though, I would recommend also including os.path.isdir() in the statement.

if not os.path.isfile(cert_bundle):

e7p commented

Can be linked to #749