cryptogen

cryptogen は、Hyperledger Fabricの鍵マテリアルを生成するためのツールです。 このツールは、テスト用途のネットワークの事前設定を行うための方法として提供されています。 本番環境のネットワークの運用には通常は使われないでしょう。

Syntax

cryptogen コマンドには、次の5つのサブコマンドがあります。

  • help
  • generate
  • showtemplate
  • extend
  • version

cryptogen help

usage: cryptogen [<flags>] <command> [<args> ...]

Utility for generating Hyperledger Fabric key material

Flags:
  --help  Show context-sensitive help (also try --help-long and --help-man).

Commands:
  help [<command>...]
    Show help.

  generate [<flags>]
    Generate key material

  showtemplate
    Show the default configuration template

  version
    Show version information

  extend [<flags>]
    Extend existing network

cryptogen generate

usage: cryptogen generate [<flags>]

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 [<flags>]

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

cryptogen extend コマンドで利用可能な複数のフラグを利用した例を次に示します。

    cryptogen extend --input="crypto-config" --config=config.yaml

    org3.example.com

これは、config.yaml で org3.example.com という新しいピア組織を追加する場合のものです。

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.