Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Sign in
issue
issue
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 23
    • Issues 23
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

新注册的用户请输入邮箱并保存,随后登录邮箱激活账号。后续可直接使用邮箱登录!

  • chainmaker
  • issueissue
  • Issues
  • #187

Closed
Open
Opened Jun 08, 2022 by liangshui king@langlang2 of 18 tasks completed2/18 tasks

[问题求助]authentication handshake failed: tls: first record does not look like a TLS handshake

【问题分类】

  • [] bug
  • P2P网络相关(包含libp2p,liquid)
  • 链账户身份与权限相关(证书问题、public、多签投票问题)
  • 核心交易引擎相关(交易池、DAG)
  • 共识相关
  • 智能合约相关
  • 存储相关
  • SDK相关
  • 长安链CMC工具
  • 长安链管理台
  • 长安链浏览器
  • 长安链合约IDE
  • 长安链web签名插件
  • 跨链相关
  • 轻节点相关
  • 隐私计算相关
  • 密码学相关
  • 环境依赖
  • 其他补充:

【问题描述】

按照官方文档配置了基于permissionwithcert 模式的配置,在本地启动4节点单链的网络,使用cmc工具进行测试验证时报错如下: Error: create user client failed, get cert hash failed, get cert hash failed, send QUERY_CONTRACT failed, all client connections are busy

【操作步骤】

  1. 使用准备脚本prepare.sh 生成证书密钥等 prepare.sh 4 1
  2. 使用cluster_quick_start.sh normal启动区块链网络
  3. 检查网络启动信息
  4. 复制build/crypto-config 目录到cmc的testdata目录
  5. 使用cmc key && cert 工具创建本地证书和密钥
  6. 创建crl 列表,使用的是5生成的证书和密钥 $ ./cmc cert crl -C ./ca.crt -K ca.key --crl-path=./client1.crl --crt-path=../sdk/testdata/crypto-config/wx-org2.chainmaker.org/user/client1/client1.tls.crt

7.到吊销证书,将crl发送到链上这步就出错啦

烦请熟悉的大佬帮忙诊断下哈

【相关日志文件】(如果有报错日志请贴图,或者上传附件)

chainmaker-go 的 log/system.log & bin/panic.log file *

SDK 的 sdk.log file 2022-06-08 09:26:10.579 [DEBUG] [SDK] v2@v2.2.1/sdk_cert_manage.go:22 [SDK] begin to get chain config 2022-06-08 09:26:10.580 [ERROR] [SDK] v2@v2.2.1/sdk_client.go:205 [SDK] call [0-127.0.0.1:12301-chainmaker.org] meet network error, try to connect another node if has, rpc error: code = Unavailable desc = connection error: desc = "transport: authentication handshake failed: tls: first record does not look like a TLS handshake" 2022-06-08 09:26:13.583 [ERROR] [SDK] util/chain_client.go:78 [SDK] get cert hash failed, get cert hash failed, send QUERY_CONTRACT failed, all client connections are busy

【系统信息】

  • chainmaker-go version * : [v2.2.0]
  • **OS & version * :ubuntu 21.04
Edited Jun 09, 2022 by liangshui king
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: chainmaker/issue#187

Copyright © 2021 ChainMaker Org. All Rights Reserved. 长安链 版权所有。