Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FABN-830] Client calls toBytes of PKCS11 keys
When using an HSM, the _setUserFromConfig() method of fabric-client/lib/Client.js calls the toBytes() method of the private key. In the case of an HSM this operation isn't allowed and it throws an error. This change will handle the error and constructs the cryptoContent accordingly. Change-Id: Iaae0ce0fca0316c252a851393770636a4c7cf42a Signed-off-by: Jonathan Patchell <Jonathan.Patchell@gemalto.com>
- Loading branch information