-
Notifications
You must be signed in to change notification settings - Fork 709
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The config path env is now named a `FABRIC_CA_HOME`, rename it to `CA_CFG_PATH` to keep aligned with fabric (PEER_CFG_PATH and ORDERER_CFG_PATH). Change-Id: I6219d428d250031fe19b6b8857c59998ea18657b Signed-off-by: Baohua Yang <[email protected]>
- Loading branch information
Showing
18 changed files
with
71 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ $($FABRIC_TLS) && HOST="https://localhost:8888" | |
while getopts "du:p:t:l:x:" option; do | ||
case "$option" in | ||
d) FABRIC_CA_DEBUG="true" ;; | ||
x) FABRIC_CA_HOME="$OPTARG" ;; | ||
x) CA_CFG_PATH="$OPTARG" ;; | ||
u) USERNAME="$OPTARG" ;; | ||
p) USERPSWD="$OPTARG" | ||
test -z "$USERPSWD" && AUTH=false | ||
|
@@ -20,10 +20,10 @@ while getopts "du:p:t:l:x:" option; do | |
l) KEYLEN="$OPTARG" ;; | ||
esac | ||
done | ||
test -z "$FABRIC_CA_HOME" && FABRIC_CA_HOME="$HOME/fabric-ca" | ||
test -z "$CLIENTCERT" && CLIENTCERT="$FABRIC_CA_HOME/cert.pem" | ||
test -z "$CLIENTKEY" && CLIENTKEY="$FABRIC_CA_HOME/key.pem" | ||
test -f "$FABRIC_CA_HOME" || mkdir -p $FABRIC_CA_HOME | ||
test -z "$CA_CFG_PATH" && CA_CFG_PATH="$HOME/fabric-ca" | ||
test -z "$CLIENTCERT" && CLIENTCERT="$CA_CFG_PATH/cert.pem" | ||
test -z "$CLIENTKEY" && CLIENTKEY="$CA_CFG_PATH/key.pem" | ||
test -f "$CA_CFG_PATH" || mkdir -p $CA_CFG_PATH | ||
|
||
: ${FABRIC_CA_DEBUG="false"} | ||
: ${AUTH="true"} | ||
|
@@ -35,7 +35,7 @@ $($AUTH) || unset USERPSWD | |
|
||
test "$KEYTYPE" = "ecdsa" && sslcmd="ec" | ||
|
||
genClientConfig "$FABRIC_CA_HOME/client-config.json" | ||
genClientConfig "$CA_CFG_PATH/client-config.json" | ||
$FABRIC_CAEXEC client enroll "$USERNAME" "$USERPSWD" "$HOST" <(echo "{ | ||
\"hosts\": [ | ||
\"[email protected]\", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ $($FABRIC_TLS) && HOST="https://localhost:8888" | |
|
||
while getopts "k:l:x:" option; do | ||
case "$option" in | ||
x) FABRIC_CA_HOME="$OPTARG" ;; | ||
x) CA_CFG_PATH="$OPTARG" ;; | ||
k) KEYTYPE="$OPTARG" ;; | ||
l) KEYLEN="$OPTARG" ;; | ||
esac | ||
|
@@ -25,12 +25,12 @@ done | |
: ${KEYTYPE="ecdsa"} | ||
: ${KEYLEN="256"} | ||
: ${FABRIC_CA_DEBUG="false"} | ||
test -z "$FABRIC_CA_HOME" && FABRIC_CA_HOME=$HOME/fabric-ca | ||
CLIENTCERT="$FABRIC_CA_HOME/cert.pem" | ||
CLIENTKEY="$FABRIC_CA_HOME/key.pem" | ||
export FABRIC_CA_HOME | ||
test -z "$CA_CFG_PATH" && CA_CFG_PATH=$HOME/fabric-ca | ||
CLIENTCERT="$CA_CFG_PATH/cert.pem" | ||
CLIENTKEY="$CA_CFG_PATH/key.pem" | ||
export CA_CFG_PATH | ||
|
||
genClientConfig "$FABRIC_CA_HOME/client-config.json" | ||
genClientConfig "$CA_CFG_PATH/client-config.json" | ||
$FABRIC_CAEXEC client reenroll $HOST <(echo "{ | ||
\"hosts\": [ | ||
\"[email protected]\", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters