Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-2396

Deprecate ssl_keyfile and ssl_certfile URI options in favor of tls* equivalents

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.12, 4.0
    • Affects Version/s: None
    • Component/s: Docs

      We did not deprecate these options when the Unified URI Options specification (PYTHON-1670) was originally implemented. They should be deprecated in both 3.12 and master (4.0) branches.

      Original description

      PyMongo 3.9 added TLS equivalents for SSL options in the MongoClient constructor.

      The examples haven't been updated yet (https://api.mongodb.com/python/current/examples/tls.html#client-certificates) but I'm unclear on the mapping of the former options of ssl_certfile and ssl_keyfile.

      According to https://api.mongodb.com/python/3.9.0/changelog.html, ssl_certfile is deprecated in favour of tlsCertificateKeyFile, although I thought this option looks more analogous to ssl_keyfile.

      Questions:

      • Is the mapping of ssl_certfile to tlsCertificateKeyFile correct or is there a missing option?

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: