While using Hyperledger Fabric, a user wants to launch a network using Docker commands. He has set the bin folder to the config path. Now he needs to create the certificate for peer organisation Org1.Which of the following commands can he use for that?cryptogen create<br /> --config=./organizations/crypto-config-org1.yaml<br /> --output= “organizations”cryptogen generate<br /> --config=./organizations/crypto-config-org1.yaml<br /> --output= ‘organizations’cryptogen create<br /> --config=./cryptogen/organizations/crypto-config-org1.yaml<br /> --output= “organizations”cryptogen generate<br /> --config=./organizations/cryptogen/crypto-config-org1.yaml<br /> --output= “organizations”
Question
While using Hyperledger Fabric, a user wants to launch a network using Docker commands. He has set the bin folder to the config path. Now he needs to create the certificate for peer organisation Org1.Which of the following commands can he use for that?cryptogen create<br /> --config=./organizations/crypto-config-org1.yaml<br /> --output= “organizations”cryptogen generate<br /> --config=./organizations/crypto-config-org1.yaml<br /> --output= ‘organizations’cryptogen create<br /> --config=./cryptogen/organizations/crypto-config-org1.yaml<br /> --output= “organizations”cryptogen generate<br /> --config=./organizations/cryptogen/crypto-config-org1.yaml<br /> --output= “organizations”
Solution
The correct command to create the certificate for peer organisation Org1 in Hyperledger Fabric is:
cryptogen generate<br /> --config=./organizations/crypto-config-org1.yaml<br /> --output= 'organizations'
This command will generate the necessary cryptographic material (keys and certificates) for the specified organization. The '--config' flag is used to specify the path to the configuration file, and the '--output' flag is used to specify the directory where the generated certificates will be stored.
Similar Questions
For a Hyperledger application, once the fabric.ca is generated by running the docker-compose-ca.yaml, which of the following files is executed to generate the certificates?configtx.shsys-genesis.shregisterEnroll.shccp.generate.sh
A user has created a fabric application named FABRIC-EXAMPLES. Here in the "docker-compose-ca.yaml" file in the "docker" folder, the configuration for certificate authority is defined. The file contains the services ca.org1, ca.org2 and ca.orderer. The ca.org1 contains a command that is used to start the Fabric CA server inside the container.What is the correct syntax of this command?sh -c ‘fabric-ca-server start -b admin:adminpw -d’sh -c ‘fabric-ca-server enable -b -p admin:adminpw’sh -c ‘fabric-ca-server enable -p admin:adminpw -k’sh -c ‘fabric-ca-server start -p -p admin:adminpw’
A user has created a fabric application named FABRIC-EXAMPLES. Here in the "docker-compose-ca.yaml" file in the "docker" folder, the configuration for certificate authority is defined. The file contains the services ca.org1, ca.org2 and ca.orderer.In the case of .org1 service, which of the following parameters are defined?(This question has multiple correct answers; choose all that apply)nameserviceimagenetworks
In the Hyperledger Fabric, the local MSP folder consists of multiple sub-folders. Here, the CACERT file contains the certificate.The CACERT file is present in which of the following folders?signcertsmspcaPeer
After creating a sales-network application in Hyperledger Fabric, a user wants to enable the network for it and display its containers.Which of the following commands can he use for that?cd sales-network/<br /> ./network.sp start -ca -s couchdbcd up sales-network/<br /> ./network.sp start -s -couchdb -cacd sales-network/<br /> ./network.sp up -ca -s couchdbcd sales-network/<br /> ./network.sp up couchdb -ca -s
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.