You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use mergin.client.set_trusted_certificates() instead of patching cert.pem
Replace the macOS-specific cert.pem file patching with a call to
mergin.client.set_trusted_certificates(cafile), a new API to be added
to python-api-client. The mergin client module stores the extra CA file
path and loads it alongside its default bundle (system CAs on Linux/Windows,
bundled cert.pem on macOS) whenever a MerginClient is instantiated.
This avoids mutating files inside the installed plugin directory and
ensures CAs are always up to date (the PEM file is rewritten on every call).
A hasattr guard keeps the code compatible with older py-client versions
that don't have the new function yet.
Remove the sys import that was only needed for the platform check.
0 commit comments