hyperledger / hyperledger/fabric-x

testing(fxconfig): add TLS to integration tests

Open
#62 7 comments 0 reactions 1 assignee Claimed by @sachin9058 View on GitHub
fxconfig
Dominant language
Go
Stars
64
Forks
80
Avg merge
1d 22h
Merged PRs (30d)
15

Description

Currently we run the fxconfig integration tests without TLS.

In order to support this, we can override the TLS configuration of the committer components via https://github.com/hyperledger/fabric-x/blob/main/tools/fxconfig/integration/helpers_test.go#L86

For example:

```
"SC_ORDERER_SERVER_TLS_MODE": "tls",
"SC_ORDERER_SERVER_TLS_CERT_PATH": fmt.Sprintf("/root/artifacts/crypto/ordererOrganizations/OrdererOrg/orderers/orderer.orderer.com/tls/server.crt"),
"SC_ORDERER_SERVER_TLS_KEY_PATH": fmt.Sprintf("/root/artifacts/crypto/ordererOrganizations/OrdererOrg/orderers/orderer.orderer.com/tls/key.crt"),
"SC_ORDERER_SERVER_TLS_CA_CERT_PATHS_[0]": fmt.Sprintf("/root/artifacts/crypto/peerOrganizations/Org1/tlsca/tlsca.org1.com-cert.pem"),
"SC_ORDERER_SERVER_TLS_CA_CERT_PATHS_[1]": fmt.Sprintf("/root/artifacts/crypto/peerOrganizations/Org1/tlsca/tlsca.org2.com-cert.pem"),
"SC_ORDERER_SERVER_TLS_CA_CERT_PATHS_[2]": fmt.Sprintf("/root/artifacts/crypto/peerOrganizations/Org1/tlsca/tlsca.org3.com-cert.pem"),
...
```

However, the syntax for the CA_CERT_PATHs is not correct. @cendhu can you give a hint here please.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.