Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-48854

[CERT] cbq shell fail to connect using pkey

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 7.1.0
    • 7.1.0
    • query
    • Untriaged
    • 1
    • Yes

    Description

      To repro:

      • setup cluster with root/intermediat certficate
      • connect via cbq using cert and encrypted pkey

      ]# /opt/couchbase/bin/cbq -e https://172.23.120.102:18093 -cert chain.pem -key pkey.key 
       ERROR 100 : x509KeyPair: parsePrivateKey, err: parsePrivateKey: failed to parse private key 
       Path to history file for the shell : /root/.cbq_history 
       
       

      without decrypted key see (could be setup issue though)

      # /opt/couchbase/bin/cbq -e https://172.23.120.102:18093 -cert chain.pem -key /tmp/pkey_decrypted.key 
       ERROR 100 : N1QL: Unable to connect to endpoint https://172.23.120.102:18093: Get "https://172.23.120.102:18093/pools": x509: certificate signed by unknown authority  

      Attachments

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

        Activity

          People

            pierre.regazzoni Pierre Regazzoni
            pierre.regazzoni Pierre Regazzoni
            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