Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-7747

node sdk: secure connection example is incorrect

    XMLWordPrintable

Details

    Description

      Referring to this doc:

      https://docs.couchbase.com/nodejs-sdk/current/howtos/managing-connections.html#ssl

      It shows this code example:

       

      const cluster = await couchbase.connect("couchbases://localhost", {
        trustStorePath: "/path/to/ca/certificates.pem",
      });
      

       

      does not work.  You still need to specify credentials for a user with appropriate permissions on the bucket.  

      This is how I got it working:

      const cluster = await couchbase.connect("couchbases://localhost", {      
         trustStorePath: "/tmp/ca.pem",    
         username: "rbac",    
         password: "password"
      });
      

      Attachments

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

        Activity

          People

            maria.shodunke Maria Shodunke (Inactive)
            hitesh.walia Hitesh Walia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty