forked from isc-projects/bind9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ALT: tests: reenable enginepkcs11 tests
Fix for openssl/openssl#22508 landed in Sisyphus. TODO: convert this to the patch
- Loading branch information
1 parent
b6644d4
commit d5f56f6
Showing
5 changed files
with
58 additions
and
40 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
# shellcheck source=conf.sh | ||
. ../conf.sh | ||
. ../setup_softhsm.sh | ||
|
||
set -e | ||
|
||
|
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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
# shellcheck source=conf.sh | ||
. ../conf.sh | ||
. ../setup_softhsm.sh | ||
|
||
set -e | ||
|
||
|
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,30 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# setup softhsm | ||
# taken from https://gitlab.isc.org/isc-projects/images/-/blob/main/docker/bind9/debian-template/prep-softhsm-openssl-engine.sh.in | ||
|
||
rm -rf "$SOFTHSM2_WORKDIR" | ||
mkdir -p "$SOFTHSM2_WORKDIR/tokens" | ||
cat <<EOF > "$SOFTHSM2_CONF" | ||
directories.tokendir = $SOFTHSM2_WORKDIR/tokens | ||
objectstore.backend = file | ||
log.level = DEBUG | ||
EOF | ||
|
||
cat > "$OPENSSL_CONF"<<EOF | ||
openssl_conf = openssl_init | ||
[openssl_init] | ||
engines = engine_section | ||
[engine_section] | ||
pkcs11 = pkcs11_section | ||
[pkcs11_section] | ||
engine_id = pkcs11 | ||
dynamic_path = $(pkg-config libcrypto --variable=enginesdir)/pkcs11.so | ||
MODULE_PATH = $SOFTHSM2_MODULE | ||
init=0 | ||
EOF |
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,5 @@ | ||
if [ -n "$SOFTHSM2_MODULE" ]; then | ||
export OPENSSL_CONF="${TMPDIR:-/tmp}/openssl.cnf" | ||
export SOFTHSM2_WORKDIR="${TMPDIR:-/tmp}/softhsm2" | ||
export SOFTHSM2_CONF="$SOFTHSM2_WORKDIR/softhsm2.conf" | ||
fi |