You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
FAB 4840 Link to ChaincodeEndorsementPolicy.java bad
PS 3 Found we needed some properties set for IBM Java and TLS
Discussed with Gari agreed to doco it.
Change-Id: I3e97c1ed14844a7cc7d978981dfd1dec362a11ce
Signed-off-by: rickr <cr22rc@gmail.com>
We need certificate and key for each of the Orderer and Peers for TLS connection. You can generate your certificate and key files with openssl command as follows:
231
236
232
237
* Set up your own Certificate Authority (CA) for issuing certificates
@@ -247,7 +252,7 @@ You create a policy using a Fabric tool ( an example is shown in [JIRA issue FAB
247
252
and give it to the SDK either as a file or a byte array. The SDK, in turn, will use the policy when it creates chaincode instantiation requests.
248
253
249
254
250
-
To input a policy to the SDK, use the [ChaincodeEndorsementPolicy class](https://gerrit.hyperledger.org/r/gitweb?p=fabric-sdk-java.git;a=blob;f=src/main/java/org/hyperledger/fabric/sdk/ChaincodeEndorsementPolicy.java;h=b67b5514b1e26ffac71210a33d788b83ee7cf288;hb=HEAD).
255
+
To input a policy to the SDK, use the **ChaincodeEndorsementPolicy** class.
251
256
252
257
For testing purposes, there are 2 policy files in the _src/test/resources_ directory
253
258
*_policyBitsAdmin_ ( which has policy **AND(DEFAULT.admin)** meaning _1 signature from the DEFAULT MSP admin' is required_ )
@@ -289,7 +294,7 @@ Go lang chaincode dependencies must be contained in vendor folder.
289
294
For an explanation of this see [Vender folder explanation](https://blog.gopheracademy.com/advent-2015/vendor-folder/)
290
295
291
296
292
-
#Basic Troubleshooting
297
+
## Basic Troubleshooting
293
298
**identity or token do not match**
294
299
295
300
Keep in mind that you can perform the enrollment process with the membership services server only once, as the enrollmentSecret is a one-time-use password. If you have performed a FSUser registration/enrollment with the membership services and subsequently deleted the crypto tokens stored on the client side, the next time you try to enroll, errors similar to the ones below will be seen.
@@ -306,13 +311,13 @@ When running the unit tests, you will always need to clean the membership servic
306
311
307
312
If you get this error, this means your JDK does not capable of handling unlimited strength crypto algorithms. To fix this issue, You will need to download the JCE libraries for your version of JDK. Please follow the instructions <ahref="http://stackoverflow.com/questions/6481627/java-security-illegal-key-size-or-default-parameters">here</a> to download and install the JCE for your version of the JDK.
308
313
309
-
#Communicating with developers and fellow users.
314
+
## Communicating with developers and fellow users.
310
315
Sign into <ahref="https://chat.hyperledger.org/">Hyperledger project's Rocket chat</a>
311
316
For this you will also need a <ahref="https://identity.linuxfoundation.org/">Linux Foundation ID</a>
312
317
313
318
Join the <b>fabric-sdk-java</b> channel.
314
319
315
-
#Reporting Issues
320
+
## Reporting Issues
316
321
If your issue is with building Fabric development environment please discuss this on rocket.chat's #fabric-dev-env channel.
317
322
318
323
To report an issue please use: <ahref="http://jira.hyperledger.org/">Hyperledger's JIRA</a>.
@@ -330,7 +335,10 @@ JIRA Fields should be:
330
335
<dd>v1.0.0</dd>
331
336
</dl>
332
337
333
-
Pleases provide as much information that you can with the issue you're experiencing: stack traces logs.
338
+
Pleases provide as much information that you can with the issue you're experiencing: stack traces logs.
339
+
340
+
Please provide the output of **java -XshowSettings:properties -version**
341
+
334
342
Logging for the SDK can be enabled with setting environment variables:
0 commit comments