[英]How to setup hyperledger fabric explorer | amazon managed blockchain
I setup hyperledger fabric network using amazon managed blockchain by following this guide .我按照本指南使用亚马逊管理的区块链设置了超级账本结构网络。 Everything works properly in the hyperledger network.
一切都在超级账本网络中正常运行。 Now I want to setup hyperledger explorer .
现在我想设置hyperledger explorer 。 I can not find any amazon's official document to setup hyperledger fabric explorer.
我找不到任何亚马逊的官方文档来设置超级账本结构浏览器。 So I am following this article .
所以我关注这篇文章。 As author's suggestion, I cloned this repo .
根据作者的建议,我克隆了这个 repo 。 I have done everything as the author said in this article.
我已经按照作者在这篇文章中所说的做了一切。 Now I need to edit
first-network.json
file.现在我需要编辑
first-network.json
文件。 I edited the first-network.json
file, as the following,我编辑了
first-network.json
文件,如下,
{
"name": "first-network",
"version": "1.0.0",
"license": "Apache-2.0",
"client": {
"tlsEnable": true,
"adminUser": "admin",
"adminPassword": "adminpw",
"enableAuthentication": false,
"organization": "m-QMD*********6HK",
"connection": {
"timeout": {
"peer": {
"endorser": "300"
},
"orderer": "300"
}
}
},
"channels": {
"mychannel": {
"peers": {
"nd-JEFEX**************N4": {}
},
"connection": {
"timeout": {
"peer": {
"endorser": "6000",
"eventHub": "6000",
"eventReg": "6000"
}
}
}
}
},
"organizations": {
"Org1MSP": {
"mspid": "m-QMD*********6HK",
"fullpath": true,
"adminPrivateKey": {
"path": "/fabric-path/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/keystore/1bebc656f198efb4b5bed08ef42cf3b2d89ac86f0a6b928e7a172fd823df0a48_sk"
},
"signedCert": {
"path": "/fabric-path/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp/signcerts/Admin@org1.example.com-cert.pem"
}
}
},
"peers": {
"nd-JEFEX**************N4": {
"tlsCACerts": {
"path": "/fabric-path/fabric-samples/first-network/crypto-config/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
},
"url": "grpcs://nd-JEFEX**************N4.m-QMD*********6HK.n-rf*********q.managedblockchain.us-east-1.amazonaws.com:30003",
"eventUrl": "grpcs://nd-JEFEX**************N4.m-QMD*********6HK.n-rf*********q.managedblockchain.us-east-1.amazonaws.com:30003",
"grpcOptions": {
"ssl-target-name-override": "nd-JEFEX**************N4"
}
}
}
}
My question is what should I add in the place of adminPrivateKey-path, signedCert-path, tlsCACerts-path.我的问题是我应该在 adminPrivateKey-path、signedCert-path、tlsCACerts-path 的位置添加什么。 Here is my list of available files generated while setting up hyperledger hyperledger fabric in amazon managed blockchain .
这是我在亚马逊托管区块链中设置超级账本超级账本结构时生成的可用文件列表。
/home/ec2-user/admin-msp$ ls * -r
user:
signcerts:
cert.pem
keystore:
fd84a**********************1f03ff_sk
cacerts:
ca-m-*****-n-*****-managedblockchain-us-east-1-amazonaws-com-30002.pem
admincerts:
cert.pem
Help me to setup hyperledger fabric explorer for my hyperledger fabric network.帮助我为我的超级账本结构网络设置超级账本结构浏览器。
You should configure your connection profile as below:您应该如下配置您的连接配置文件:
"organizations": {
"Org1MSP": {
"mspid": "m-QMD*********6HK",
"fullpath": true,
"adminPrivateKey": {
"path": "/home/ec2-user/admin-msp/keystore/fd84a**********************1f03ff_sk"
},
"signedCert": {
"path": "/home/ec2-user/admin-msp/signcerts/cert.pem"
}
}
},
"peers": {
"nd-JEFEX**************N4": {
"tlsCACerts": {
"path": "/home/ec2-user/admin-msp/cacerts/ca-m-*****-n-*****-managedblockchain-us-east-1-amazonaws-com-30002.pem"
},
"url": "grpcs://nd-JEFEX**************N4.m-QMD*********6HK.n-rf*********q.managedblockchain.us-east-1.amazonaws.com:30003",
"grpcOptions": {
"ssl-target-name-override": "nd-JEFEX**************N4"
}
}
}
And I recommend to use the latest Explorer because commit for AWS managed blockchain service and many other bugfixes were committed recently ( Making Hyperledger Explorer compatible to Amazon Managed Blockchain N… · hyperledger/blockchain-explorer@7b30821 )我建议使用最新的 Explorer,因为最近提交了 AWS 托管区块链服务和许多其他错误修复( 使 Hyperledger Explorer 与 Amazon Managed Blockchain N 兼容...·hyperledger/blockchain-explorer@7b30821 )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.