在Local Composer-Playground中创建配置文件时遇到握手错误 [英] Getting handshake error while creating profile in Local composer-playground

查看:46
本文介绍了在Local Composer-Playground中创建配置文件时遇到握手错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在创建配置文件以连接到Hyperledger Fabric实例时,出现以下错误.

While creating a profile to connect to a hyperledger fabric instance, I get the following error.

0|composer | HLFConnection :login() > admin
0|composer | E0508 11:50:42.311834619 75 ssl_transport_security.c:611] Could not load any root certificate.
0|composer | E0508 11:50:42.311850655 75 ssl_transport_security.c:1348] Cannot load server root certificates.
0|composer | E0508 11:50:42.312139228 75 security_connector.c:837] Handshaker factory creation failed with TSI_INVALID_ARGUMENT.
0|composer | E0508 11:50:42.312149486 75 secure_channel_create.c:127] Failed to create secure subchannel for secure name.

当我在游乐场日志中检查已加载的证书时,'\ r \ n'已更改为'\\ r \\ n'

When I check the loaded certificate in the playground logs, '\r\n' has been changed to '\\r\\n'

推荐答案

当您以单个字符串输入PEM证书时,这是证书文本框的一个已知问题. 目前有两种方法可以解决此问题.您需要先删除文本中的所有\ r \ n文本,然后再将其放入UI的cert字段中,或者可以导入用于通过命令行进行连接的当前连接配置文件.

This is a known issue with the certificate text box when you enter the PEM certificate as a single string. There are a couple of ways to get around the problem for now. You either need to remove all the \r\n text from the text before putting into the cert field on the UI, or you can import your current connection profile which you use for connection via the command line.

以下是在github中发布的链接.

Following is the link to issue in github.

https://github.com/hyperledger/composer/issues/893

这篇关于在Local Composer-Playground中创建配置文件时遇到握手错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆