diff --git a/hyperledger/1.0/scripts/initialize.sh b/hyperledger/1.0/scripts/initialize.sh index 60f0b1df..d821b04f 100644 --- a/hyperledger/1.0/scripts/initialize.sh +++ b/hyperledger/1.0/scripts/initialize.sh @@ -53,9 +53,9 @@ setGlobals () { createChannel() { setGlobals 0 - - if [ -z "$CORE_PEER_TLS_ENABLED" -o "$CORE_PEER_TLS_ENABLED" = "false" ]; then + if [ -z "$CORE_PEER_TLS_ENABLED" -o "$CORE_PEER_TLS_ENABLED" = "false" ]; then peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --timeout $TIMEOUT >&log.txt + else peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA --timeout $TIMEOUT >&log.txt fi