Uploaded image for project: 'Fabric SDK Node'
  1. Fabric SDK Node
  2. FABN-417

node sdk isn't always using the file keystore requested

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: v1.0.0
    • Labels:

      Description

      In our code we provide a directory to use for the filekeystore to use as follows

                 LOG.debug(method, 'Using key value store', connectOptions.keyValStore);
                  result = Client.newDefaultKeyValueStore({
                      path: connectOptions.keyValStore
                  })
                  .then((store) => {
                      client.setStateStore(store);
                      return store;
                  })
                  .catch((error) => {
                      LOG.error(method, error);
                      throw error;
                  });
              }
      
              return result.then((store) => {
      
                  // Create a CA client.
                  const caClient = HLFConnectionManager.createCAClient(connectOptions.ca, {
                      path: connectOptions.keyValStore
                  });
      

      However it would appear that the default of .hfc-key-store is still being used as I see this being created and a public key has been ceated in the directory.

      in our defined keystore

      rw-rw-r- 1 vagrant vagrant 246 Mar 2 09:06 81c34cc4a7a2b034ab43d5c41a8738f02d1ebee40ca18bc8818c71db223d063b-priv
      rw-rw-r- 1 vagrant vagrant 968 Mar 2 09:06 admin

      in .hfc-key-store

      rw-rw-r- 1 vagrant vagrant 182 Mar 2 09:06 81c34cc4a7a2b034ab43d5c41a8738f02d1ebee40ca18bc8818c71db223d063b-pub

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              davidkel Dave Kelsey
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration