cryptogen — Hyperledger Fabric Docs main documentation Hyperledger Fabric Docs       Introduction What’s new in Hyperledger Fabric v2.x Release notes Key Concepts Getting Started - Install Getting Started - Run Fabric Tutorials Deploying a production network Operations Guides Upgrading to the latest release Commands Reference peer peer chaincode peer lifecycle chaincode peer channel peer snapshot peer version peer node osnadmin channel configtxgen configtxlator cryptogen Syntax cryptogen help cryptogen generate cryptogen showtemplate cryptogen extend cryptogen version Usage ledgerutil Service Discovery CLI Fabric-CA Commands Architecture Reference Frequently Asked Questions Contributions Welcome! Glossary Releases Still Have Questions? Status Hyperledger Fabric Docs Commands Reference cryptogen View page source cryptogen¶ cryptogen is an utility for generating Hyperledger Fabric key material. It is provided as a means of preconfiguring a network for testing purposes. It would normally not be used in the operation of a production network. Syntax¶ The cryptogen command has five subcommands, as follows: help generate showtemplate extend version cryptogen help¶ usage: cryptogen [] [ ...] Utility for generating Hyperledger Fabric key material Flags: --help Show context-sensitive help (also try --help-long and --help-man). Commands: help [...] Show help. generate [] Generate key material showtemplate Show the default configuration template version Show version information extend [] Extend existing network cryptogen generate¶ usage: cryptogen generate [] Generate key material Flags: --help Show context-sensitive help (also try --help-long and --help-man). --output="crypto-config" The output directory in which to place artifacts --config=CONFIG The configuration template to use cryptogen showtemplate¶ usage: cryptogen showtemplate Show the default configuration template Flags: --help Show context-sensitive help (also try --help-long and --help-man). cryptogen extend¶ usage: cryptogen extend [] Extend existing network Flags: --help Show context-sensitive help (also try --help-long and --help-man). --input="crypto-config" The input directory in which existing network place --config=CONFIG The configuration template to use cryptogen version¶ usage: cryptogen version Show version information Flags: --help Show context-sensitive help (also try --help-long and --help-man). Usage¶ Here’s an example using the different available flags on the cryptogen extend command. cryptogen extend --input="crypto-config" --config=config.yaml org3.example.com Where config.yaml adds a new peer organization called org3.example.com This work is licensed under a Creative Commons Attribution 4.0 International License. Next Previous © Copyright Hyperledger 2020-2023. This work is licensed under a Creative Commons Attribution 4.0 International License Built with Sphinx using a theme provided by Read the Docs.