Skip to content

Allow configuration of SSL certificate verification #37

@amorphic

Description

@amorphic

Requests provides the verify kwarg to allow a user to:

  • True: verify the host's certificate using Requests' internal certificate bundle
  • False: do not verify the host's certificate
  • /path/to/cert/bundle.pem: verify the host's certificate using a local certificate bundle file

The last two options are requried when using self-signed certificates, i.e. when using SSL inside an organisation.

HypChat does not currently support the verify argument:

class HypChat(object):
    def __init__(self, token, endpoint='https://api.hipchat.com'):
        self._requests = _requests(auth=BearerAuth(token))

A workaround exists for using a local certificate bundle file: export the REQUESTS_CA_BUNDLE environment variable. But it would be great if HypChat explicitly supported the verify kwarg if provided by the user.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions