简体   繁体   English

如何设置超级账本结构浏览器 | 亚马逊管理的区块链

[英]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.

相关问题 在Amazon Managed Blockchain Hyperledger Fabric 1.2上以REST API部署和公开Chaincode - Deploy and expose chaincode as REST api on amazon managed blockchain hyperledger fabric 1.2 AWS 托管超级账本结构 v1.4.7 区块链 - 连接到结构网络时出现错误证书错误 - AWS managed hyperledger fabric v1.4.7 blockchain - Getting bad certificate error when connecting to the fabric network AWS Managed Blockchain (Hyperledger Fabric) - 向/从对等节点写入和读取数据 - AWS Managed Blockchain (Hyperledger Fabric) - Write and read data to/from peer nodes AWS 托管区块链 - Hyperledger Fabric 错误:无法组装交易 notarget 找不到与 fabric-shim@^1.4.2 匹配的版本 - AWS Managed Blockchain - Hyperledger fabric Error: could not assemble transaction notarget No matching version found for fabric-shim@^1.4.2 Amazon Managed Blockchain 的性能指标 - Performance metrics on Amazon Managed Blockchain 在亚马逊管理的区块链上配置事件 - Configuring events on the amazon managed blockchain 错误 | 注册会员管理员 | fabric-ca-client 注册 | 亚马逊托管区块链 - Error | entroll the member admin | fabric-ca-client enroll | Amazon Managed Blockchain Amazon Managed Blockchain和Amazon Blockchain模板之间有什么区别? - What is the difference between Amazon managed Blockchain and Amazon Blockchain Templates? 对 Amazon Managed Blockchain 服务的请求过多 - Too Many Requests for Amazon Managed Blockchain service 亚马逊托管区块链未显示以太坊网络 - Amazon Managed Blockchain not showing Ethereum network
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM