File tree Expand file tree Collapse file tree 5 files changed +34
-2
lines changed Expand file tree Collapse file tree 5 files changed +34
-2
lines changed Original file line number Diff line number Diff line change 17
17
# - orderer - builds a native fabric orderer binary
18
18
# - release - builds release packages for the host platform
19
19
# - release-all - builds release packages for all target platforms
20
+ # - softhsm2_initialization - generates softhsm2 tokens used in pkcs11 test
20
21
# - unit-test - runs the go-test based unit tests
21
22
# - verify - runs unit tests for only the changed package tree
22
23
# - profile - runs unit tests for all packages in coverprofile mode (slow)
@@ -183,7 +184,10 @@ ccenv: $(BUILD_DIR)/image/ccenv/$(DUMMY)
183
184
integration-test : gotool.ginkgo ccenv docker-thirdparty
184
185
./scripts/run-integration-tests.sh
185
186
186
- unit-test : unit-test-clean peer-docker docker-thirdparty ccenv
187
+ softhsm2_initialization :
188
+ ./scripts/config_softhsm2.sh
189
+
190
+ unit-test : unit-test-clean peer-docker softhsm2_initialization docker-thirdparty ccenv
187
191
unit-test/run.sh
188
192
189
193
unit-tests : unit-test
Original file line number Diff line number Diff line change 36
36
iptables -I INPUT 1 -j ACCEPT
37
37
sysctl vm.overcommit_memory=1
38
38
39
+ # #################
40
+ # Install softhsm2
41
+ yum install softhsm -y
42
+
39
43
# #################
40
44
# Install Docker
41
45
cd /tmp
Original file line number Diff line number Diff line change 39
39
# Install pre-requisite OS packages #
40
40
# ####################################
41
41
apt-get update
42
- apt-get -y install software-properties-common curl git sudo wget " build-essential" zlib1g-dev libbz2-dev
42
+ apt-get -y install software-properties-common curl git sudo wget " build-essential" zlib1g-dev libbz2-dev softhsm2
43
43
44
44
# ####################################
45
45
# Install and setup Docker services #
Original file line number Diff line number Diff line change @@ -55,6 +55,14 @@ Prerequisites
55
55
- Note: The BIOS Enabled Virtualization may be within the CPU or
56
56
Security settings of the BIOS
57
57
58
+ - (macOS) `Install softhsm on Mac OSX <http://macappstore.org/softhsm/ >`__.You can
59
+ use Homebrew to install it as follows:
60
+
61
+ ::
62
+
63
+ brew install softhsm
64
+
65
+
58
66
``pip ``
59
67
~~~~~~
60
68
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ #
3
+ # Copyright IBM Corp. All Rights Reserved.
4
+ #
5
+ # SPDX-License-Identifier: Apache-2.0
6
+ #
7
+
8
+ cd $HOME
9
+ mkdir -p $HOME /lib/softhsm/tokens
10
+ cd $HOME /lib/softhsm/
11
+ echo " directories.tokendir = $PWD /tokens" > softhsm2.conf
12
+ echo " Update SOFTHSM2_CONF via export SOFTHSM2_CONF=$HOME /lib/softhsm/softhsm2.conf"
13
+
14
+ export SOFTHSM2_CONF=$HOME /lib/softhsm/softhsm2.conf
15
+
16
+ softhsm2-util --init-token --slot 0 --label " ForFabric" --so-pin 1234 --pin 98765432
You can’t perform that action at this time.
0 commit comments