Skip to content

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

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

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions