source: mod_gnutls/test/test-24_pkcs11_cert.bash @ 278381d

proxy-ticket
Last change on this file since 278381d was 278381d, checked in by Fiona Klute <fiona.klute@…>, 7 months ago

Remove code for SoftHSM 1 support

SoftHSM 1 has been unsupported for years, so there's no point in
supporting tests with it.

  • Property mode set to 100755
File size: 827 bytes
Line 
1#!/bin/bash
2
3testdir="$(dirname ${0})/tests/24_pkcs11_cert"
4
5# 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# tree was moved.
9tmp_softhsm_conf="$(mktemp mod_gnutls_test-XXXXXX.conf)"
10function cleanup_tmpconf
11{
12    rm "${tmp_softhsm_conf}"
13}
14trap cleanup_tmpconf EXIT
15
16cat - >"${tmp_softhsm_conf}" <<EOF
17objectstore.backend = file
18directories.tokendir = $(realpath $(pwd))/authority/server/softhsm2.db
19EOF
20export SOFTHSM2_CONF="${tmp_softhsm_conf}"
21
22echo "Generated temporary SoftHSM config ${tmp_softhsm_conf}:"
23cat "${tmp_softhsm_conf}"
24
25. $(dirname ${0})/softhsm.bash
26
27set -e
28
29${srcdir}/netns_py.bash ${srcdir}/runtest.py --test-number 24
30
31cleanup_tmpconf
32trap - EXIT
Note: See TracBrowser for help on using the repository browser.