Commit 2c7c3b79 authored by Ondřej Surý's avatar Ondřej Surý

SoftHSM 2.4.0 only supports softhsm2.conf now, rewrite GitLab CI commands to properly support that

parent 51286ec0
......@@ -4436,6 +4436,7 @@
./util/nanny.pl PERL 2000,2001,2004,2007,2012,2016,2018
./util/new-func PERL 2005,2007,2012,2016,2018
./util/nt-kit SH 1999,2000,2001,2004,2007,2012,2016,2018
./util/prepare-softhsm2.sh X 2018
./util/spacewhack.pl PERL 2000,2001,2004,2007,2012,2016,2018
./util/tabify-changes SH 2004,2007,2012,2016,2018
./util/update-drafts.pl PERL 2000,2001,2004,2007,2012,2016,2018
......
#!/bin/sh
if [ -n "${SOFTHSM2_CONF}" ] && command -v softhsm2-util >/dev/null; then
SOFTHSM2_DIR=$(dirname "$SOFTHSM2_CONF")
mkdir -p "${SOFTHSM2_DIR}/tokens"
echo "directories.tokendir = ${SOFTHSM2_DIR}/tokens" > "${SOFTHSM2_CONF}"
echo "objectstore.backend = file" >> "${SOFTHSM2_CONF}"
echo "log.level = DEBUG" >> "${SOFTHSM2_CONF}"
softhsm2-util --init-token --free --pin 0000 --so-pin 0000 --label "softhsm2";
fi
exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment