Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-248

must specify certificate error when trying to use system certs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.1
    • None
    • None
    • None
    • 1
    • SDK41

    Description

      The SDK errors out early if TLS is used but no certificate is provided manually.

      jakerawsthorne@REML0715 build % ./test/tools/tool_kv_loader                                         
      [2022-10-11 17:23:19.286] [81223,5161135] [info] 0ms, send_queries: false, number_of_threads: 4, username: "Administrator", connection_string: "couchbases://node1-71d8b22a.cbqeoc.com", bucket: "default"
      [2022-10-11 17:23:19.323] [81223,5161136] [warning] 36ms, DNS SRV query returned 0 records for "node1-71d8b22a.cbqeoc.com", assuming that cluster is listening this address
      [2022-10-11 17:23:19.323] [81223,5161136] [error] 0ms, [008e68e9-a531-4033-0704-44d7e245241d] When TLS is enabled, the cluster options must specify certificate(s) to trust. (Unless connecting to cloud.couchbase.com.)
      [2022-10-11 17:23:19.323] [81223,5161135] [critical] 0ms, unable to connect to the cluster: invalid_argument (3), nodes="node1-71d8b22a.cbqeoc.com:11207"
      libc++abi: terminating with uncaught exception of type std::__1::system_error: invalid_argument (3)
      zsh: abort      ./test/tools/tool_kv_loader
      

      Attachments

        Issue Links

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

          Activity

            People

              avsej Sergey Avseyev
              jake.rawsthorne Jake Rawsthorne
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes