当前位置: 首页 > news >正文

crypto-config.yaml

使用命令:

  cryptogen showtemplate

产生的文件如下所示:

    # ---------------------------------------------------------------------------
    # "OrdererOrgs" - Definition of organizations managing orderer nodes
    # ---------------------------------------------------------------------------
    OrdererOrgs:
      # ---------------------------------------------------------------------------
      # Orderer
      # ---------------------------------------------------------------------------
      - Name: Orderer
        Domain: example.com
    
        # ---------------------------------------------------------------------------
        # "Specs" - See PeerOrgs below for complete description
        # ---------------------------------------------------------------------------
        Specs:
          - Hostname: orderer
    
    # ---------------------------------------------------------------------------
    # "PeerOrgs" - Definition of organizations managing peer nodes
    # ---------------------------------------------------------------------------
    PeerOrgs:
      # ---------------------------------------------------------------------------
      # Org1
      # ---------------------------------------------------------------------------
      - Name: Org1
        Domain: org1.example.com
        EnableNodeOUs: false
    
        # ---------------------------------------------------------------------------
        # "CA"
        # ---------------------------------------------------------------------------
        # Uncomment this section to enable the explicit definition of the CA for this
        # organization.  This entry is a Spec.  See "Specs" section below for details.
        # ---------------------------------------------------------------------------
        # CA:
        #    Hostname: ca # implicitly ca.org1.example.com
        #    Country: US
        #    Province: California
        #    Locality: San Francisco
        #    OrganizationalUnit: Hyperledger Fabric
        #    StreetAddress: address for org # default nil
        #    PostalCode: postalCode for org # default nil
    
        # ---------------------------------------------------------------------------
        # "Specs"
        # ---------------------------------------------------------------------------
        # Uncomment this section to enable the explicit definition of hosts in your
        # configuration.  Most users will want to use Template, below
        #
        # Specs is an array of Spec entries.  Each Spec entry consists of two fields:
        #   - Hostname:   (Required) The desired hostname, sans the domain.
        #   - CommonName: (Optional) Specifies the template or explicit override for
        #                 the CN.  By default, this is the template:
        #
        #                              "{{.Hostname}}.{{.Domain}}"
        #
        #                 which obtains its values from the Spec.Hostname and
        #                 Org.Domain, respectively.
        #   - SANS:       (Optional) Specifies one or more Subject Alternative Names
        #                 to be set in the resulting x509. Accepts template
        #                 variables {{.Hostname}}, {{.Domain}}, {{.CommonName}}. IP
        #                 addresses provided here will be properly recognized. Other
        #                 values will be taken as DNS names.
        #                 NOTE: Two implicit entries are created for you:
        #                     - {{ .CommonName }}
        #                     - {{ .Hostname }}
        # ---------------------------------------------------------------------------
        # Specs:
        #   - Hostname: foo # implicitly "foo.org1.example.com"
        #     CommonName: foo27.org5.example.com # overrides Hostname-based FQDN set above
        #     SANS:
        #       - "bar.{{.Domain}}"
        #       - "altfoo.{{.Domain}}"
        #       - "{{.Hostname}}.org6.net"
        #       - 172.16.10.31
        #   - Hostname: bar
        #   - Hostname: baz
    
        # ---------------------------------------------------------------------------
        # "Template"
        # ---------------------------------------------------------------------------
        # Allows for the definition of 1 or more hosts that are created sequentially
        # from a template. By default, this looks like "peer%d" from 0 to Count-1.
        # You may override the number of nodes (Count), the starting index (Start)
        # or the template used to construct the name (Hostname).
        #
        # Note: Template and Specs are not mutually exclusive.  You may define both
        # sections and the aggregate nodes will be created for you.  Take care with
        # name collisions
        # ---------------------------------------------------------------------------
        Template:
          Count: 1
          # Start: 5
          # Hostname: {{.Prefix}}{{.Index}} # default
          # SANS:
          #   - "{{.Hostname}}.alt.{{.Domain}}"
    
        # ---------------------------------------------------------------------------
        # "Users"
        # ---------------------------------------------------------------------------
        # Count: The number of user accounts _in addition_ to Admin
        # ---------------------------------------------------------------------------
        Users:
          Count: 1
    
      # ---------------------------------------------------------------------------
      # Org2: See "Org1" for full specification
      # ---------------------------------------------------------------------------
      - Name: Org2
        Domain: org2.example.com
        EnableNodeOUs: false
        Template:
          Count: 1
        Users:
          Count: 1

相关文章:

  • 纯净版crypto-config.yaml文件
  • hyperledger生成peer和order
  • golang实现web服务器
  • ActiveMQ消息队列
  • export对环境变量进行设置
  • hyperledger中基本网络搭建示例
  • hyperledger中docker-compose文件示例
  • hyperledger多节点交易
  • 微服务架构
  • 微服务架构的特性
  • protoBuf的优缺点
  • GRPC
  • Consul
  • Micro
  • REST
  • 【JavaScript】通过闭包创建具有私有属性的实例对象
  • Java比较器对数组,集合排序
  • Just for fun——迅速写完快速排序
  • MySQL的数据类型
  • Twitter赢在开放,三年创造奇迹
  • Web设计流程优化:网页效果图设计新思路
  • 多线程事务回滚
  • 深入浏览器事件循环的本质
  • 使用iElevator.js模拟segmentfault的文章标题导航
  • 用 vue 组件自定义 v-model, 实现一个 Tab 组件。
  • 正则学习笔记
  • Unity3D - 异步加载游戏场景与异步加载游戏资源进度条 ...
  • ​ArcGIS Pro 如何批量删除字段
  • #14vue3生成表单并跳转到外部地址的方式
  • (14)学习笔记:动手深度学习(Pytorch神经网络基础)
  • (第9篇)大数据的的超级应用——数据挖掘-推荐系统
  • (十)c52学习之旅-定时器实验
  • (收藏)Git和Repo扫盲——如何取得Android源代码
  • (转)setTimeout 和 setInterval 的区别
  • (转)Windows2003安全设置/维护
  • (转载)CentOS查看系统信息|CentOS查看命令
  • .mysql secret在哪_MySQL如何使用索引
  • .NET 3.0 Framework已经被添加到WindowUpdate
  • .net core 6 redis操作类
  • .net FrameWork简介,数组,枚举
  • .Net的DataSet直接与SQL2005交互
  • .NET开源全面方便的第三方登录组件集合 - MrHuo.OAuth
  • .NET与 java通用的3DES加密解密方法
  • .ui文件相关
  • /dev下添加设备节点的方法步骤(通过device_create)
  • @Autowired自动装配
  • @SuppressLint(NewApi)和@TargetApi()的区别
  • [<死锁专题>]
  • [2016.7 test.5] T1
  • [20181219]script使用小技巧.txt
  • [BUG]Datax写入数据到psql报不能序列化特殊字符
  • [cocos2d-x]关于CC_CALLBACK
  • [codeforces]Levko and Permutation
  • [DL]深度学习_Feature Pyramid Network
  • [GN] Vue3.2 快速上手 ---- 核心语法2