hyperledger-fabric

Hyperledger Fabric How to generate peer sans certificates via fabric-ca-client

只谈情不闲聊 提交于 2020-07-10 10:27:14
问题 I am trying to run a Hypderledger v2.0 fabric-ca-client binary file to get certificates with SANS configurations... $ fabric-ca-client enroll -u ${CA_FULL_URL} --tls.certfiles ${CA_CERT_PATH} --csr.hosts peer0-org1 --enrollment.profile tls So we have "--csr.hosts peer0-org1" to supposedly generate certs that include SAN(Subject Alternative Name)... BUT when checking it with $ openssl x509 -noout -text -in certificateX123.pem The result is: Certificate: Data: Version: 3 (0x2) Serial Number: 01

Why is it highly discouraged to be an application and orderer organization at the same time?

无人久伴 提交于 2020-07-09 14:51:06
问题 Let's take the scenario of 3 equitable organizations, i.e., each organization runs peers and should be equally involved in the ordering process. For me, it feels quite natural to configure those 3 organizations to have an orderer node and some peers, each. However, this setup is highly discouraged . Quote from the FAQ: Question: Can I have an organization act both in an ordering and application role? Answer: Although this is possible, it is a highly discouraged configuration. By default the

The channel is not configured with any peers with the 'discover' role

▼魔方 西西 提交于 2020-07-09 04:17:24
问题 I am trying to do a transaction from java fabric SDK. I am able to query the data properly from the node but while doing a transaction I am getting the following error: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: The channel is not configured with any peers with the 'discover' role at org.hyperledger.fabric.sdk.Channel.sendTransactionProposalToEndorsers(Channel.java:3955) ~[fabric-sdk-java-1.4.5.jar:na] at org.hyperledger.fabric.gateway.impl.TransactionImpl

The channel is not configured with any peers with the 'discover' role

帅比萌擦擦* 提交于 2020-07-09 04:16:44
问题 I am trying to do a transaction from java fabric SDK. I am able to query the data properly from the node but while doing a transaction I am getting the following error: org.hyperledger.fabric.sdk.exception.ServiceDiscoveryException: The channel is not configured with any peers with the 'discover' role at org.hyperledger.fabric.sdk.Channel.sendTransactionProposalToEndorsers(Channel.java:3955) ~[fabric-sdk-java-1.4.5.jar:na] at org.hyperledger.fabric.gateway.impl.TransactionImpl

node chaincode instantiate behind proxy

佐手、 提交于 2020-07-07 23:05:45
问题 I'm following the official document: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I am building my first network. But when I instantiate the node version chaincode, because my machine is working behind the proxy, NPM always throws network exception to me. I have tried setting proxy in the package.json or scripts, but it does not work. How can I avoid this? For example, if I execute: ./byfn.sh -c mychannel -l go up it works well. But, if I execute: ./byfn.sh -c

node chaincode instantiate behind proxy

妖精的绣舞 提交于 2020-07-07 23:01:53
问题 I'm following the official document: https://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I am building my first network. But when I instantiate the node version chaincode, because my machine is working behind the proxy, NPM always throws network exception to me. I have tried setting proxy in the package.json or scripts, but it does not work. How can I avoid this? For example, if I execute: ./byfn.sh -c mychannel -l go up it works well. But, if I execute: ./byfn.sh -c

Hyperledger Fabric join channel return positive but does not work

此生再无相见时 提交于 2020-06-29 06:44:25
问题 I am running HyperledgerFabric 2.1 and I would like to deploy a 2 organizations network in a multi-hostenvironment. Following the tutorial I am running the following: I generate all the articats with the following: cryptogen generate --config=./crypto-config.yaml configtxgen -profile TwoOrgsOrdererGenesis -outputBlock ./channel-artifacts/genesis.block --channelID system-channel configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/mychannel.tx -channelID mychannel

How can I send the update channel configuration request to the Orderer using node SDK?

Deadly 提交于 2020-06-28 05:12:18
问题 There are 03 main phases in the process of updating the channel configuration: (1) Get the latest configuration from the Orderer. (2) Modify the configuration. (3) Sign and send a transaction to the Orderer to update channel configuration. I got an error at step (3) while trying to call updateChannel() function which is: { status: 'BAD_REQUEST', info: 'error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit

How can I send the update channel configuration request to the Orderer using node SDK?

荒凉一梦 提交于 2020-06-28 05:12:02
问题 There are 03 main phases in the process of updating the channel configuration: (1) Get the latest configuration from the Orderer. (2) Modify the configuration. (3) Sign and send a transaction to the Orderer to update channel configuration. I got an error at step (3) while trying to call updateChannel() function which is: { status: 'BAD_REQUEST', info: 'error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit

BAD_REQUEST — error validating channel creation transaction for new channel in the Hyperledger Tutorial

孤者浪人 提交于 2020-06-17 14:24:45
问题 i get an error for hyperledger fabric. I followed the documentation and I came across his error when I ran the below command peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem the error being BAD_REQUEST -- error validating channel creation transaction for new channel