Skip to content

DH_KEY_TOO_SMALL #4

@earion68

Description

@earion68

I am using this component as part of Bbox' Home Assistant integration.
Since Home Assistant moved to latest version of OpenSSL, pybbox is no longer working and replies "DH_KEY_TOO_SMALL".

I created a workaround in a custom component here

in BboxApiCall.init method:

        requests.packages.urllib3.util.ssl_.DEFAULT_CIPHERS += 'HIGH:!DH:!aNULL'
        try:
            requests.packages.urllib3.contrib.pyopenssl.DEFAULT_SSL_CIPHER_LIST += 'HIGH:!DH:!aNULL'
        except AttributeError:
            # no pyopenssl support used / needed / available
            pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions