Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit 0011e7e

Browse files
committed
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>
1 parent b1d1eca commit 0011e7e

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,11 @@ The end to end test case artifacts are stored under the directory _src/test/fixt
227227

228228
### TLS connection to Orderer and Peers
229229

230+
IBM Java needs the following properties defined to use TLS 1.2 to get an HTTPS connections to Fabric CA.
231+
```
232+
-Dcom.ibm.jsse2.overrideDefaultTLS=true -Dhttps.protocols=TLSv1.2
233+
```
234+
230235
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:
231236

232237
* 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
247252
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.
248253

249254

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.
251256

252257
For testing purposes, there are 2 policy files in the _src/test/resources_ directory
253258
* _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.
289294
For an explanation of this see [Vender folder explanation](https://blog.gopheracademy.com/advent-2015/vendor-folder/)
290295

291296

292-
#Basic Troubleshooting
297+
## Basic Troubleshooting
293298
**identity or token do not match**
294299

295300
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
306311

307312
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 <a href="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.
308313

309-
#Communicating with developers and fellow users.
314+
## Communicating with developers and fellow users.
310315
Sign into <a href="https://chat.hyperledger.org/">Hyperledger project's Rocket chat</a>
311316
For this you will also need a <a href="https://identity.linuxfoundation.org/">Linux Foundation ID</a>
312317

313318
Join the <b>fabric-sdk-java</b> channel.
314319

315-
#Reporting Issues
320+
## Reporting Issues
316321
If your issue is with building Fabric development environment please discuss this on rocket.chat's #fabric-dev-env channel.
317322

318323
To report an issue please use: <a href="http://jira.hyperledger.org/">Hyperledger's JIRA</a>.
@@ -330,7 +335,10 @@ JIRA Fields should be:
330335
<dd>v1.0.0</dd>
331336
</dl>
332337

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+
334342
Logging for the SDK can be enabled with setting environment variables:
335343

336344
ORG_HYPERLEDGER_FABRIC_SDK_LOGLEVEL=TRACE

0 commit comments

Comments
 (0)