-
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.
This patch allows to initialize softhsm2 token as non-root user, by merely setting SOFTHSM2_CONF, CI Envrionment should be updated to leverage SOFTHSM2_CONF. Change-Id: I9fdc9c837859a78619d9edc9e2e3fbe8733f04af Signed-off-by: Krishna Harsha Voora <krishvoor@in.ibm.com>
- Loading branch information
Showing
5 changed files
with
34 additions
and
2 deletions.
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
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,16 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright IBM Corp. All Rights Reserved. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
cd $HOME | ||
mkdir -p $HOME/lib/softhsm/tokens | ||
cd $HOME/lib/softhsm/ | ||
echo "directories.tokendir = $PWD/tokens" > softhsm2.conf | ||
echo "Update SOFTHSM2_CONF via export SOFTHSM2_CONF=$HOME/lib/softhsm/softhsm2.conf" | ||
|
||
export SOFTHSM2_CONF=$HOME/lib/softhsm/softhsm2.conf | ||
|
||
softhsm2-util --init-token --slot 0 --label "ForFabric" --so-pin 1234 --pin 98765432 |