Uploaded image for project: 'Couchbase Python Client Library'
  1. Couchbase Python Client Library
  2. PYCBC-949

Error trying to use server cert

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0.8
    • 3.0.1
    • None
    • None
    • 1
    • SDK28: Txn Loop/Rb,PfQueryColl, SDK30: Connect,Txns, SDK34: Txn/RBAC Mgmt./QColl

    Description

      To connect to a cloud instance, I did this:

      cluster = Cluster.connect(
          'couchbases://cb.51bbb323-476e-4354-bec8-5f9b0a67d146.dp.cloud.couchbase.com?certpath=/Users/davidkelly/projects/gerrit/couchbase-python-client/cloudcert.pem',
          ClusterOptions(PasswordAuthenticator('username', 'password'))
      )
      

      and, since I put the path in the connection string, it works.

      However, this fails with a complaint about certpath (note the spelling) not being a valid parameter if I put the cert_path in the PasswordAuthenticator:

      cluster = Cluster.connect(
          'couchbases://cb.51bbb323-476e-4354-bec8-5f9b0a67d146.dp.cloud.couchbase.com',
          ClusterOptions(PasswordAuthenticator('username', 'password', cert_path='/Users/davidkelly/projects/gerrit/couchbase-python-client/cloudcert.pem'))
      )
      

      I think further down, this is not being added to the connect string as it should?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            reilbert Richard Eilbert
            david.kelly David Kelly (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty