Skip to content

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

Closed

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

Activity

  1. CeliaBuira commented on Feb 12, 2025

    @CeliaBuira
    Contributor

    Thanks for the bug report, this is in our underlying python API client we use to talk to Mergin Maps services. I'll transfer the issue

  2. added this to the 0.14.0 milestone on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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