I have a remote Fabric network (ie. HSBN) to which I have credentials provided to me post-network creation. There is no way to regenerate the MSP data directory structure and attempting to run this cli tool against the remote network results in the following error:
panic: Error getting user for org PeerOrg1: Error finding the private key path: Could not read directory open /root/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli/fixtures/channel/crypto-config/peerOrganizations/PeerOrg1.example.com/users/User1@PeerOrg1.example.com/keystore: no such file or directory, err /root/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli/fixtures/channel/crypto-config/peerOrganizations/PeerOrg1.example.com/users/User1@PeerOrg1.example.com/keystore
root@loadtest:~/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli# ./fabric-cli --config 4ecc/4ecc-config.yaml --orgid PeerOrg1 --user admin --pw <> query info
2017-08-20 21:30:56.693 CDT [fabric_sdk_go] InitConfigWithCmdRoot -> INFO 001 Using config file: 4ecc/4ecc-config.yaml
2017-08-20 21:30:56.694 CDT [fabric_sdk_go] InitConfigWithCmdRoot -> INFO 002 fabric_sdk_go Logging level: warning
21:30:56.694 [bccsp_sw] DEBU : KeyStore path [/tmp/msp-4ecc/keystore] missing [true]: []
21:30:56.694 [bccsp_sw] DEBU : Creating KeyStore at [/tmp/msp-4ecc/keystore]...
21:30:56.694 [bccsp_sw] DEBU : KeyStore created at [/tmp/msp-4ecc/keystore].
21:30:56.694 [bccsp_sw] DEBU : KeyStore opened at [/tmp/msp-4ecc/keystore]...done
21:30:56.695 [bccsp_sw] DEBU : KeyStore path [/tmp/msp-4ecc/keystore] missing [true]: []
21:30:56.695 [bccsp_sw] DEBU : Creating KeyStore at [/tmp/msp-4ecc/keystore]...
21:30:56.695 [bccsp_sw] DEBU : KeyStore created at [/tmp/msp-4ecc/keystore].
21:30:56.695 [bccsp_sw] DEBU : KeyStore opened at [/tmp/msp-4ecc/keystore]...done
21:30:56.695 [bccsp] DEBU : Initialize BCCSP [SW]
21:30:56.695 [bccsp_sw] DEBU : KeyStore path [/tmp/msp-4ecc/keystore] missing [true]: []
21:30:56.695 [bccsp_sw] DEBU : Creating KeyStore at [/tmp/msp-4ecc/keystore]...
21:30:56.695 [bccsp_sw] DEBU : KeyStore created at [/tmp/msp-4ecc/keystore].
21:30:56.695 [bccsp_sw] DEBU : KeyStore opened at [/tmp/msp-4ecc/keystore]...done
panic: Error getting user for org PeerOrg1: Error finding the private key path: Could not read directory open /root/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli/fixtures/channel/crypto-config/peerOrganizations/PeerOrg1.example.com/users/User1@PeerOrg1.example.com/keystore: no such file or directory, err /root/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli/fixtures/channel/crypto-config/peerOrganizations/PeerOrg1.example.com/users/User1@PeerOrg1.example.com/keystore
I have a remote Fabric network (ie. HSBN) to which I have credentials provided to me post-network creation. There is no way to regenerate the MSP data directory structure and attempting to run this cli tool against the remote network results in the following error:
panic: Error getting user for org PeerOrg1: Error finding the private key path: Could not read directory open /root/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli/fixtures/channel/crypto-config/peerOrganizations/PeerOrg1.example.com/users/User1@PeerOrg1.example.com/keystore: no such file or directory, err /root/go/src/github.com/securekey/fabric-examples/fabric-cli/cmd/fabric-cli/fixtures/channel/crypto-config/peerOrganizations/PeerOrg1.example.com/users/User1@PeerOrg1.example.com/keystore