github.com/kaituanwang/hyperledger@v2.0.1+incompatible/docs/source/commands/cryptogen.md (about)

     1  # cryptogen
     2  
     3  `cryptogen` is an utility for generating Hyperledger Fabric key material.
     4  It is provided as a means of preconfiguring a network for testing purposes.
     5  It would normally not be used in the operation of a production network.
     6  
     7  ## Syntax
     8  
     9  The ``cryptogen`` command has five subcommands, as follows:
    10  
    11    * help
    12    * generate
    13    * showtemplate
    14    * extend
    15    * version
    16  
    17  ## cryptogen help
    18  ```
    19  usage: cryptogen [<flags>] <command> [<args> ...]
    20  
    21  Utility for generating Hyperledger Fabric key material
    22  
    23  Flags:
    24    --help  Show context-sensitive help (also try --help-long and --help-man).
    25  
    26  Commands:
    27    help [<command>...]
    28      Show help.
    29  
    30    generate [<flags>]
    31      Generate key material
    32  
    33    showtemplate
    34      Show the default configuration template
    35  
    36    version
    37      Show version information
    38  
    39    extend [<flags>]
    40      Extend existing network
    41  ```
    42  
    43  
    44  ## cryptogen generate
    45  ```
    46  usage: cryptogen generate [<flags>]
    47  
    48  Generate key material
    49  
    50  Flags:
    51    --help                    Show context-sensitive help (also try --help-long
    52                              and --help-man).
    53    --output="crypto-config"  The output directory in which to place artifacts
    54    --config=CONFIG           The configuration template to use
    55  ```
    56  
    57  
    58  ## cryptogen showtemplate
    59  ```
    60  usage: cryptogen showtemplate
    61  
    62  Show the default configuration template
    63  
    64  Flags:
    65    --help  Show context-sensitive help (also try --help-long and --help-man).
    66  ```
    67  
    68  
    69  ## cryptogen extend
    70  ```
    71  usage: cryptogen extend [<flags>]
    72  
    73  Extend existing network
    74  
    75  Flags:
    76    --help                   Show context-sensitive help (also try --help-long and
    77                             --help-man).
    78    --input="crypto-config"  The input directory in which existing network place
    79    --config=CONFIG          The configuration template to use
    80  ```
    81  
    82  
    83  ## cryptogen version
    84  ```
    85  usage: cryptogen version
    86  
    87  Show version information
    88  
    89  Flags:
    90    --help  Show context-sensitive help (also try --help-long and --help-man).
    91  ```
    92  
    93  ## Usage
    94  
    95  Here's an example using the different available flags on the ``cryptogen extend``
    96  command.
    97  
    98  ```
    99      cryptogen extend --input="crypto-config" --config=config.yaml
   100  
   101      org3.example.com
   102  ```
   103  
   104  Where config.yaml adds a new peer organization called ``org3.example.com``
   105  
   106  <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.