From 8d29c32421fcb514990fcdada324b2aca887f0c5 Mon Sep 17 00:00:00 2001 From: Attila Klenik Date: Thu, 3 Oct 2019 10:55:26 +0000 Subject: [PATCH] Fix mutual TLS for Fabric gateway mode Signed-off-by: Attila Klenik --- .gitignore | 1 + packages/caliper-fabric/lib/fabric.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dadedc358..9dd1e671d 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ zookeeper.out .idea/ **/node_modules/ **/log/ +**/*.log # Ignore any composer logs composer-logs/ diff --git a/packages/caliper-fabric/lib/fabric.js b/packages/caliper-fabric/lib/fabric.js index d20bdebe0..9994045bf 100644 --- a/packages/caliper-fabric/lib/fabric.js +++ b/packages/caliper-fabric/lib/fabric.js @@ -1077,7 +1077,7 @@ class Fabric extends BlockchainInterface { // Optional on mutual auth if (this.networkUtil.isMutualTlsEnabled()) { - opts.clientTlsIdentity = 'tlsId'; + opts.clientTlsIdentity = userId; } // Retrieve gateway using ccp and options