#!/bin/bash # The client keys are stored in a SoftHSM device. TESTDIR=$1 PRIVKEY=$2 OBJNAME=$3 shift 3 PUBKEY="$PRIVKEY.pub" echo "TESTDIR: $TESTDIR" echo "PRIVKEY: $PRIVKEY" echo "PUBKEY: $PUBKEY" echo "OBJNAME: $OBJNAME" # Create temporary directory for tokens install -d -m 0755 $TESTDIR/db # Create SoftHSM configuration file cat >$TESTDIR/softhsm.conf <