简体   繁体   English

有没有办法在 Hyperledger Fabric 中自动生成连接配置文件(使用 CLI)?

[英]Is there a way to generate Connection Profile in Hyperledger Fabric automatically (with CLI)?

I am currently working on Hyperledger Fabric, and I just bring up a local network based on the "Build Your First Network" tutorial from HL Fabric official site.我目前正在研究 Hyperledger Fabric,我只是根据 HL Fabric 官方网站上的“构建您的第一个网络”教程建立了一个本地网络。 Before this, I build a network on IBM Blockchain Platform, and they have a sweet feature that can automatically build a Connection Profile for you.在此之前,我在 IBM Blockchain Platform 上构建了一个网络,他们有一个很好的特性可以自动为您构建一个连接配置文件。 My question is whether Hyperledger Fabric itself has such a tool.我的问题是 Hyperledger Fabric 本身是否有这样的工具。 Or, we have to manually config the connection profile and find the components by ourselves.或者,我们必须手动配置连接配置文件并自行查找组件。

Thanks in advance!提前致谢!

You can use composer-cli@0.10.0 with the command:您可以将composer-cli@0.10.0与以下命令一起使用:

composer identity import -p hlfv1 -u Admin -c /home/egritos/fabric-network-on-swarm/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem -k /home/egritos/fabric-network-on-swarm/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/..._sk

Although composer is deprecated, it still the only choice I have found.尽管composer已被弃用,但它仍然是我找到的唯一选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM