Skip to content

Feature Request: Add verify parameter to Mftool initialization #107

Description

@ksp2000

Description

Currently, the Mftool class does not support customizing SSL certificate verification during initialization. This can cause issues when working behind corporate proxies or in environments with custom SSL certificates.

Proposed Solution

Add a verify parameter to the Mftool.__init__() method, similar to how it's implemented in the requests.Session API. This would allow users to control SSL certificate verification behavior.

Example Implementation

class Mftool:
    def __init__(self, verify: bool | str = True):
        """
        :param verify: bool or str, passed to requests.Session.verify to control SSL verification.
                       True (default) verifies SSL certs, False disables verification.
                       Can also be a path to a CA bundle file.
        """
        self._session = requests.Session()
        self._session.verify = verify
        # ... rest of initialization

Activity

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions