mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-17 15:35:09 +00:00
This sample uses fabric-ca to run an end-to-end test similar to the BYFN sample. However, instead of using cryptogen, it uses fabric-ca. All private keys are generated dynamically in the container in which they are used. This sample also demonstrates how to use abac (Attribute-Based Access Control) to make access decisions. See chaincode/abac/abac.go. Change-Id: I5eddc9e35908e409ac07266c3183ce89a5a6cd82 Signed-off-by: Keith Smith <bksmith@us.ibm.com>
17 lines
363 B
Bash
Executable file
17 lines
363 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Copyright IBM Corp. All Rights Reserved.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -e
|
|
|
|
# Initialize the root CA
|
|
fabric-ca-server init -b $BOOTSTRAP_USER_PASS
|
|
|
|
# Copy the root CA's signing certificate to the data directory to be used by others
|
|
cp $FABRIC_CA_SERVER_HOME/ca-cert.pem $TARGET_CERTFILE
|
|
|
|
# Start the root CA
|
|
fabric-ca-server start
|