-
Type:
Bug
-
Status: Unverified (View Workflow)
-
Priority:
Medium
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:
-
Steps to Reproduce:
This is related to my [email|https://lists.hyperledger.org/g/fabric/topic/how_to_configure_node_app_to/31570609?p=,,,20,0,0,0::recentpostdate%2Fsticky,,,20,2,0,31570609] and FABN-808. It looks like a node app will never be able to communicate with a fabric ca server that has clientauth enabled. The support for this does not exist in the Node SDK. I looked at the Node SDK code and see following lines (Lines 291-302 in FabricCAClient.js):
const requestOptions = { hostname: self._hostname, port: self._port, path: self._baseAPI + api_method, method: http_method, headers: { Authorization: self.generateAuthToken(requestObj, signingIdentity) }, ca: self._tlsOptions.trustedRoots, rejectUnauthorized: self._tlsOptions.verify, timeout: CONNECTION_TIMEOUT };
showing that the client cert and key is never added to Http options. This should be fixed.