admin 管理员组

文章数量: 887021

fabric

1、生成新增组织证书

对于fabric网络来说,要新增一个组织,首先是从证书开始,因为证书就是fabric里面的身份。这里使用fabric-ca生产组织证书。

docker-compose-ca_org3.yaml

# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#version: '2'services:ca_org3:image: hyperledger/fabric-ca:1.4environment:- FABRIC_CA_HOME=/etc/hyperledger/fabric-ca-server- FABRIC_CA_SERVER_CA_NAME=ca-org3- FABRIC_CA_SERVER_TLS_ENABLED=true- FABRIC_CA_SERVER_PORT=10054ports:- "10054:10054"command: sh -c 'fabric-ca-server start -b admin:adminpw -d'volumes:- ./organizations/fabric-ca/org3:/etc/hyperledger/fabric-ca-servercontainer_name: ca_org3

 修改配置文件fabric-ca-server-config.yaml,将数据库改成mysql

db:type: mysqldatasource: root:password@tcp(10.20.31.113:3306)/ca_org3?

本文标签: fabric