Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change CA ports in test-network-nano-bash #1222

Merged
merged 1 commit into from
Jun 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions test-network-nano-bash/ca/createEnrollments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,74 +34,74 @@ 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}"


######################################################################################
# Create admin and user certificates for the Organizations
######################################################################################

# Enroll Admin certificate for the ordering service org
registerAndEnroll "7052" "osadmin" "osadminpw" "admin" "" "${orderer_org_dir}/users/[email protected]" "${orderer_org_dir}" "${orderer_org_tls}"
registerAndEnroll "5052" "osadmin" "osadminpw" "admin" "" "${orderer_org_dir}/users/[email protected]" "${orderer_org_dir}" "${orderer_org_tls}"

# Enroll Admin certificate for org1
registerAndEnroll "7053" "org1admin" "org1adminpw" "admin" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}"
registerAndEnroll "5053" "org1admin" "org1adminpw" "admin" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}"

# Enroll User certificate for org1
registerAndEnroll "7053" "org1user1" "org1user1pw" "client" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}"
registerAndEnroll "5053" "org1user1" "org1user1pw" "client" "org1" "${org1_dir}/users/[email protected]" "${org1_dir}" "${org1_tls}"

# Enroll Admin certificate for org2
registerAndEnroll "7054" "org2admin" "org2adminpw" "admin" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}"
registerAndEnroll "5054" "org2admin" "org2adminpw" "admin" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}"

# Enroll User certificate for org1
registerAndEnroll "7054" "org2user1" "org2user1pw" "client" "org2" "${org2_dir}/users/[email protected]" "${org2_dir}" "${org2_tls}"
registerAndEnroll "5054" "org2user1" "org2user1pw" "client" "org2" "${org2_dir}/users/[email protected]" "${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}"


######################################################################################
# Create the certificates for Org1
######################################################################################

# 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}"


######################################################################################
# Create the certificates for Org2
######################################################################################

# 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}"


######################################################################################
Expand Down
2 changes: 1 addition & 1 deletion test-network-nano-bash/ordererca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test-network-nano-bash/org1ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion test-network-nano-bash/org2ca.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading