Getting handshake error while creating profile in Local composer-playground

倖福魔咒の 提交于 2020-01-05 04:44:13

问题


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.

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


回答1:


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.

Following is the link to issue in github.

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



来源:https://stackoverflow.com/questions/43855088/getting-handshake-error-while-creating-profile-in-local-composer-playground

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!