From 490ee87a7fc6539c7e62a99b804cf79b8229031f Mon Sep 17 00:00:00 2001 From: Chris Elder Date: Sat, 15 Jun 2024 12:06:01 -0400 Subject: [PATCH] Change CA ports in test-network-nano-bash Signed-off-by: Chris Elder --- .../ca/createEnrollments.sh | 34 +++++++++---------- test-network-nano-bash/ordererca.sh | 2 +- test-network-nano-bash/org1ca.sh | 2 +- test-network-nano-bash/org2ca.sh | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/test-network-nano-bash/ca/createEnrollments.sh b/test-network-nano-bash/ca/createEnrollments.sh index 5b109b192a..dc9beb16d1 100755 --- a/test-network-nano-bash/ca/createEnrollments.sh +++ b/test-network-nano-bash/ca/createEnrollments.sh @@ -34,13 +34,13 @@ export org2_tls=${PWD}/data_ca/org2ca/ca/ca-cert.pem ###################################################################################### # Enroll CA Admin for ordererca -createEnrollment "7052" "admin" "adminpw" "" "${orderer_org_dir}/ca" "${orderer_org_tls}" +createEnrollment "5052" "admin" "adminpw" "" "${orderer_org_dir}/ca" "${orderer_org_tls}" # Enroll CA Admin for org1ca -createEnrollment "7053" "admin" "adminpw" "org1" "${org1_dir}/ca" "${org1_tls}" +createEnrollment "5053" "admin" "adminpw" "org1" "${org1_dir}/ca" "${org1_tls}" # Enroll CA Admin for org2ca -createEnrollment "7054" "admin" "adminpw" "org2" "${org2_dir}/ca" "${org2_tls}" +createEnrollment "5054" "admin" "adminpw" "org2" "${org2_dir}/ca" "${org2_tls}" ###################################################################################### @@ -48,38 +48,38 @@ createEnrollment "7054" "admin" "adminpw" "org2" "${org2_dir}/ca" "${org2_tls}" ###################################################################################### # Enroll Admin certificate for the ordering service org -registerAndEnroll "7052" "osadmin" "osadminpw" "admin" "" "${orderer_org_dir}/users/Admin@example.com" "${orderer_org_dir}" "${orderer_org_tls}" +registerAndEnroll "5052" "osadmin" "osadminpw" "admin" "" "${orderer_org_dir}/users/Admin@example.com" "${orderer_org_dir}" "${orderer_org_tls}" # Enroll Admin certificate for org1 -registerAndEnroll "7053" "org1admin" "org1adminpw" "admin" "org1" "${org1_dir}/users/Admin@org1.example.com" "${org1_dir}" "${org1_tls}" +registerAndEnroll "5053" "org1admin" "org1adminpw" "admin" "org1" "${org1_dir}/users/Admin@org1.example.com" "${org1_dir}" "${org1_tls}" # Enroll User certificate for org1 -registerAndEnroll "7053" "org1user1" "org1user1pw" "client" "org1" "${org1_dir}/users/User1@org1.example.com" "${org1_dir}" "${org1_tls}" +registerAndEnroll "5053" "org1user1" "org1user1pw" "client" "org1" "${org1_dir}/users/User1@org1.example.com" "${org1_dir}" "${org1_tls}" # Enroll Admin certificate for org2 -registerAndEnroll "7054" "org2admin" "org2adminpw" "admin" "org2" "${org2_dir}/users/Admin@org2.example.com" "${org2_dir}" "${org2_tls}" +registerAndEnroll "5054" "org2admin" "org2adminpw" "admin" "org2" "${org2_dir}/users/Admin@org2.example.com" "${org2_dir}" "${org2_tls}" # Enroll User certificate for org1 -registerAndEnroll "7054" "org2user1" "org2user1pw" "client" "org2" "${org2_dir}/users/User1@org2.example.com" "${org2_dir}" "${org2_tls}" +registerAndEnroll "5054" "org2user1" "org2user1pw" "client" "org2" "${org2_dir}/users/User1@org2.example.com" "${org2_dir}" "${org2_tls}" ###################################################################################### # Create the certificates for the Ordering Organization ###################################################################################### # Create enrollment and TLS certificates for orderer1 -registerAndEnroll "7052" "orderer1" "orderer1pw" "orderer" "" "${orderer1_dir}" "${orderer_org_dir}" "${orderer_org_tls}" +registerAndEnroll "5052" "orderer1" "orderer1pw" "orderer" "" "${orderer1_dir}" "${orderer_org_dir}" "${orderer_org_tls}" # Create enrollment and TLS certificates for orderer2 -registerAndEnroll "7052" "orderer2" "orderer2pw" "orderer" "" "${orderer2_dir}" "${orderer_org_dir}" "${orderer_org_tls}" +registerAndEnroll "5052" "orderer2" "orderer2pw" "orderer" "" "${orderer2_dir}" "${orderer_org_dir}" "${orderer_org_tls}" # Create enrollment and TLS certificates for orderer3 -registerAndEnroll "7052" "orderer3" "orderer3pw" "orderer" "" "${orderer3_dir}" "${orderer_org_dir}" "${orderer_org_tls}" +registerAndEnroll "5052" "orderer3" "orderer3pw" "orderer" "" "${orderer3_dir}" "${orderer_org_dir}" "${orderer_org_tls}" # Create enrollment and TLS certificates for orderer4 -registerAndEnroll "7052" "orderer4" "orderer4pw" "orderer" "" "${orderer4_dir}" "${orderer_org}" "${orderer_org_tls}" +registerAndEnroll "5052" "orderer4" "orderer4pw" "orderer" "" "${orderer4_dir}" "${orderer_org}" "${orderer_org_tls}" # Create enrollment and TLS certificates for orderer5 -registerAndEnroll "7052" "orderer5" "orderer5pw" "orderer" "" "${orderer5_dir}" "${orderer_org_dir}" "${orderer_org_tls}" +registerAndEnroll "5052" "orderer5" "orderer5pw" "orderer" "" "${orderer5_dir}" "${orderer_org_dir}" "${orderer_org_tls}" ###################################################################################### @@ -87,10 +87,10 @@ registerAndEnroll "7052" "orderer5" "orderer5pw" "orderer" "" "${orderer5_dir}" ###################################################################################### # Create enrollment and TLS certificates for peer0org1 -registerAndEnroll "7053" "org1peer0" "org1peer0pw" "peer" "org1" "${peer0org1_dir}" "${org1_dir}" "${org1_tls}" +registerAndEnroll "5053" "org1peer0" "org1peer0pw" "peer" "org1" "${peer0org1_dir}" "${org1_dir}" "${org1_tls}" # Create enrollment and TLS certificates for peer1org1 -registerAndEnroll "7053" "org1peer1" "org1peer1pw" "peer" "org1" "${peer1org1_dir}" "${org1_dir}" "${org1_tls}" +registerAndEnroll "5053" "org1peer1" "org1peer1pw" "peer" "org1" "${peer1org1_dir}" "${org1_dir}" "${org1_tls}" ###################################################################################### @@ -98,10 +98,10 @@ registerAndEnroll "7053" "org1peer1" "org1peer1pw" "peer" "org1" "${peer1org1_di ###################################################################################### # Create enrollment and TLS certificates for peer0org2 -registerAndEnroll "7054" "org2peer0" "org2peer0pw" "peer" "org2" "${peer0org2_dir}" "${org2_dir}" "${org2_tls}" +registerAndEnroll "5054" "org2peer0" "org2peer0pw" "peer" "org2" "${peer0org2_dir}" "${org2_dir}" "${org2_tls}" # Create enrollment and TLS certificates for peer1org2 -registerAndEnroll "7054" "org2peer1" "org2peer1pw" "peer" "org2" "${peer1org2_dir}" "${org2_dir}" "${org2_tls}" +registerAndEnroll "5054" "org2peer1" "org2peer1pw" "peer" "org2" "${peer1org2_dir}" "${org2_dir}" "${org2_tls}" ###################################################################################### diff --git a/test-network-nano-bash/ordererca.sh b/test-network-nano-bash/ordererca.sh index 679e12982f..c8df4bcc92 100755 --- a/test-network-nano-bash/ordererca.sh +++ b/test-network-nano-bash/ordererca.sh @@ -7,7 +7,7 @@ export FABRIC_CFG_PATH="${PWD}"/../config #Configure the CA_NAME, CA_PORT, OPERATIONS_PORT and CSR_HOSTS for the CA export CA_NAME=ordererca -export CA_PORT=7052 +export CA_PORT=5052 export OPERATIONS_PORT=9843 export CSR_HOSTS=ordererca,localhost,127.0.0.1 diff --git a/test-network-nano-bash/org1ca.sh b/test-network-nano-bash/org1ca.sh index bdfc918d2b..4c39e08c89 100755 --- a/test-network-nano-bash/org1ca.sh +++ b/test-network-nano-bash/org1ca.sh @@ -7,7 +7,7 @@ export FABRIC_CFG_PATH="${PWD}"/../config #Configure the CA_NAME, CA_PORT, OPERATIONS_PORT and CSR_HOSTS for the CA export CA_NAME=org1ca -export CA_PORT=7053 +export CA_PORT=5053 export OPERATIONS_PORT=9844 export CSR_HOSTS=org1ca,localhost,127.0.0.1 diff --git a/test-network-nano-bash/org2ca.sh b/test-network-nano-bash/org2ca.sh index a325fd4c8b..b8343aa167 100755 --- a/test-network-nano-bash/org2ca.sh +++ b/test-network-nano-bash/org2ca.sh @@ -7,7 +7,7 @@ export FABRIC_CFG_PATH="${PWD}"/../config #Configure the CA_NAME, CA_PORT, OPERATIONS_PORT and CSR_HOSTS for the CA export CA_NAME=org2ca -export CA_PORT=7054 +export CA_PORT=5054 export OPERATIONS_PORT=9845 export CSR_HOSTS=org2ca,localhost,127.0.0.1