Details
-
Bug
-
Resolution: Fixed
-
Major
-
7.1.0
-
7.1.0-1540
-
Untriaged
-
1
-
Unknown
Description
To repro, setup client certificate and convert private key to encrypted pkcs8.
# /opt/couchbase/bin/cbq -e https://172.23.104.90 -cacert ../ca.pem -cert travel-sample.pem -key travel-sample-pkcs8-crypt-v2.key -p mypass |
ERROR 100 : x509KeyPair: parsePrivateKey returned err: parsePrivateKey: failed to parse private key. Error: asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:64 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} int @2; asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:64 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} int @2; x509: failed to parse EC private key: asn1: structure error: tags don't match (2 vs {class:0 tag:16 length:64 isCompound:true}) {optional:false explicit:false application:false private:false defaultValue:<nil> tag:<nil> stringType:0 timeType:0 set:false omitEmpty:false} int @2 |
Path to history file for the shell : /root/.cbq_history |
cbq> \quit;
|
Works with dummy user:
# /opt/couchbase/bin/cbq -e https://172.23.104.90 -cacert ../ca.pem -cert travel-sample.pem -key travel-sample-pkcs8-crypt-v2.key -p mypass -u foo |
Connected to : https://172.23.104.90:18091/. Type Ctrl-D or \QUIT to exit. Path to history file for the shell : /root/.cbq_history |
cbq> \quit;
|