-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "[FAB-1648] Install SoftHSM for testing PKCS11 CSP"
- Loading branch information
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
ARCH=`uname -m` | ||
|
||
if [ $ARCH = "s390x" ]; then | ||
echo "deb http://ftp.us.debian.org/debian sid main" >> /etc/apt/sources.list | ||
fi | ||
|
||
# Install softhsm2 package | ||
apt-get update | ||
apt-get -y install softhsm2 | ||
|
||
# Create tokens directory | ||
mkdir -p /var/lib/softhsm/tokens/ | ||
|
||
#Initialize token | ||
softhsm2-util --init-token --slot 0 --label "ForFabric" --so-pin 1234 --pin 98765432 |