mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-23 01:55:10 +00:00
moved samples out of asset-transfer-basic
Signed-off-by: sapthasurendran <saptha.surendran@ibm.com>
This commit is contained in:
parent
217c510979
commit
a37f4523e0
14 changed files with 7 additions and 7 deletions
|
|
@ -109,7 +109,7 @@ echo 'go install pkcs11 enabled fabric-ca-client'
|
|||
go install -tags pkcs11 github.com/hyperledger/fabric-ca/cmd/fabric-ca-client@latest
|
||||
createNetwork
|
||||
print "Initializing Typescript HSM gateway application"
|
||||
pushd ../asset-transfer-basic/application-gateway-hsm/scripts/
|
||||
pushd ../hsm-gateway-applications/scripts/
|
||||
print "Enroll and register User in HSM"
|
||||
./generate-hsm-user.sh HSMUser
|
||||
pushd ../node/
|
||||
|
|
@ -124,7 +124,7 @@ stopNetwork
|
|||
# Run Go HSM gateway application
|
||||
createNetwork
|
||||
print "Initializing Go HSM gateway application"
|
||||
pushd ../asset-transfer-basic/application-gateway-hsm/scripts/
|
||||
pushd ../hsm-gateway-applications/scripts/
|
||||
print "Register and enroll user in HSM"
|
||||
./generate-hsm-user.sh HSMUser
|
||||
pushd ../go
|
||||
|
|
|
|||
|
|
@ -103,14 +103,14 @@ generate a certificate on the file system for use by the sample. The private key
|
|||
For HSM support you need to ensure you include the `pkcs11` build tag.
|
||||
|
||||
```
|
||||
cd application-gateway-hsm/go
|
||||
cd hsm-gateway-applications/go
|
||||
go run -tags pkcs11 hsm-sample.go
|
||||
```
|
||||
|
||||
### Node SDK
|
||||
|
||||
```
|
||||
cd application-gateway-hsm/node
|
||||
cd hsm-gateway-applications/node
|
||||
npm install
|
||||
npm start
|
||||
```
|
||||
|
|
@ -33,7 +33,7 @@ import (
|
|||
const (
|
||||
mspID = "Org1MSP"
|
||||
certPath = "../crypto-material/hsm/HSMUser/signcerts/cert.pem"
|
||||
tlsCertPath = "../../../test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
|
||||
tlsCertPath = "../../test-network/organizations/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt"
|
||||
peerEndpoint = "localhost:7051"
|
||||
)
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ const utf8Decoder = new TextDecoder();
|
|||
|
||||
const certPath = path.resolve(__dirname, '..', '..', 'crypto-material', 'hsm', user, 'signcerts', 'cert.pem');
|
||||
|
||||
const tlsCertPath = path.resolve('..', '..', '..', 'test-network','organizations','peerOrganizations', 'org1.example.com', 'peers', 'peer0.org1.example.com', 'tls', 'ca.crt');
|
||||
const tlsCertPath = path.resolve('..', '..', 'test-network','organizations','peerOrganizations', 'org1.example.com', 'peers', 'peer0.org1.example.com', 'tls', 'ca.crt');
|
||||
const peerEndpoint = 'localhost:7051';
|
||||
|
||||
async function main() {
|
||||
|
|
@ -4,7 +4,7 @@ set -eo pipefail
|
|||
# define the CA setup
|
||||
CA_HOST=localhost
|
||||
CA_URL=${CA_HOST}:7054
|
||||
TLS_CERT='../../../test-network/organizations/fabric-ca/org1/tls-cert.pem'
|
||||
TLS_CERT='../../test-network/organizations/fabric-ca/org1/tls-cert.pem'
|
||||
|
||||
LocateHsmLib() {
|
||||
if [[ -n "${PKCS11_LIB}" && -f "${PKCS11_LIB}" ]]; then
|
||||
Loading…
Reference in a new issue