Skip to content

Commit

Permalink
updated help message for CFSSL
Browse files Browse the repository at this point in the history
Signed-off-by: Aditya Joshi <adityaprakashjoshi1@gmail.com>
  • Loading branch information
adityajoshi12 committed Sep 21, 2023
1 parent da34440 commit d5ef0ae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-network/organizations/cfssl/registerEnroll.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function orderer_cert() {
cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/tlsca/tlsca.example.com-cert.pem"

cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/msp/cacerts/"
cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/msp/tlscacerts/"
cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/msp/tlscacerts/tlsca.example.com-cert.pem"

echo 'NodeOUs:
Enable: true
Expand Down Expand Up @@ -176,7 +176,7 @@ function generate_peer_certs() {
cfssl gencert \
-ca="$CERT_DIR/ca/ca.pem" \
-ca-key="$CERT_DIR/ca/ca-key.pem" \
-config="$PWD/organizations/cfssl/cert-signing-config.jso"n \
-config="$PWD/organizations/cfssl/cert-signing-config.json" \
-cn="$USER" \
-hostname="$USER,localhost,127.0.0.1" \
-profile="sign" \
Expand Down Expand Up @@ -243,7 +243,7 @@ function generate_orderer_certs() {
mv "$CERT_DIR/orderers/$USER/msp/signcerts/cert-key.pem" "$CERT_DIR/orderers/$USER/msp/keystore"

cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/orderers/$USER/msp/cacerts"
cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/orderers/$USER/msp/tlscacerts"
cp "$CERT_DIR/ca/ca.pem" "$CERT_DIR/orderers/$USER/msp/tlscacerts/tlsca.example.com-cert.pem"

echo 'NodeOUs:
Enable: true
Expand Down
2 changes: 2 additions & 0 deletions test-network/scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function printHelp() {
println
println " Flags:"
println " -ca - Use Certificate Authorities to generate network crypto material"
println " -cfssl <use CFSSL> - Use CFSSL CA to generate network crypto material"
println " -bft - Use Orderers with consensus type BFT (Not available in Fabric v2.x)"
println " -c <channel name> - Name of channel to create (defaults to \"mychannel\")"
println " -s <dbtype> - Peer state database to deploy: goleveldb (default) or couchdb"
Expand Down Expand Up @@ -111,6 +112,7 @@ function printHelp() {
println " Flags:"
println " Used with \033[0;32mnetwork.sh up\033[0m, \033[0;32mnetwork.sh createChannel\033[0m:"
println " -ca - Use Certificate Authorities to generate network crypto material"
println " -cfssl <use CFSSL> - Use CFSSL CA to generate network crypto material"
println " -bft - Use Orderers with consensus type BFT (Not available in Fabric v2.x)"
println " -c <channel name> - Name of channel to create (defaults to \"mychannel\")"
println " -s <dbtype> - Peer state database to deploy: goleveldb (default) or couchdb"
Expand Down

0 comments on commit d5ef0ae

Please sign in to comment.