Changeset b0e5dae in mod_gnutls for test/test-24_pkcs11_cert.bash
- Timestamp:
- Feb 12, 2016, 9:20:46 PM (5 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- aeaf28b
- Parents:
- 6f644fa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/test-24_pkcs11_cert.bash
r6f644fa rb0e5dae 3 3 testdir="$(dirname ${0})/tests/24_pkcs11_cert" 4 4 5 # The Apache/SoftHSM configuration mixes up directories, so generate a6 # config file with an absolute pathto the token database from a7 # template. Generating iton every run avoids problems if the source5 # The Apache/SoftHSM configuration mixes up directories, so generate 6 # config files with absolute paths to the token database from a 7 # template. Generating them on every run avoids problems if the source 8 8 # tree was moved. 9 9 tmp_softhsm_conf="$(mktemp mod_gnutls_test-XXXXXX.conf)" … … 14 14 trap cleanup_tmpconf EXIT 15 15 16 cat - >"${tmp_softhsm_conf}" <<EOF 16 if [ "${SOFTHSM_MAJOR_VERSION}" = "1" ]; then 17 cat - >"${tmp_softhsm_conf}" <<EOF 17 18 0:$(realpath $(pwd))/server/softhsm.db 18 19 EOF 19 export SOFTHSM_CONF="${tmp_softhsm_conf}" 20 export SOFTHSM_CONF="${tmp_softhsm_conf}" 21 elif [ "${SOFTHSM_MAJOR_VERSION}" = "2" ]; then 22 cat - >"${tmp_softhsm_conf}" <<EOF 23 objectstore.backend = file 24 directories.tokendir = $(realpath $(pwd))/server/softhsm2.db 25 EOF 26 export SOFTHSM2_CONF="${tmp_softhsm_conf}" 27 fi 28 20 29 echo "Generated temporary SoftHSM config ${tmp_softhsm_conf}:" 21 30 cat "${tmp_softhsm_conf}"
Note: See TracChangeset
for help on using the changeset viewer.