Skip to content

ssl.SSLContext() without protocol argument is deprecated #230

@Me-xx

Description

@Me-xx

PYthonWarning
2025-01-19T17:51:38 WARNING
warning:%AppData%/QGIS/QGIS3\profiles\default/python/plugins\Mergin\mergin\client.py:128:
DeprecationWarning: ssl.SSLContext() without protocol argument is
deprecated.

ctx = ssl.SSLContext()

         traceback: File "", line 1, in 


Steps to reproduce the issue

Install QGIS and Install Mergin Plugin and Sync a Project

Versions

QGIS-Version | 3.40.2-Bratislava -- | --

Solution

This should solve the Problem cafile = os.path.join(this_dir, "cert.pem") if not os.path.exists(cafile): raise Exception("missing " + cafile) ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT) ctx.load_verify_locations(cafile)

Must be put in "plugins\Mergin\mergin\client.py" line 128

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions