aboutsummaryrefslogtreecommitdiff
path: root/environment.sh
blob: a842d81309515dde0b19cb1dc5ca601986726d87 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This is not a script in its own right, it's included by the other
# scripts to let us keep all the environment variables in a single place.

# Where the PKCS #11 module lives, usually /usr/lib/libcryptech-pkcs11.so

export PKCS11_MODULE=/usr/lib/libcryptech-pkcs11.so

# PIN for user account on the HSM.  In production you would NOT
# want this in an environment variable!

export PKCS11_PIN=fnord

# Where to find our OpenSSL configuration file.

export OPENSSL_CONF=`pwd`/openssl.conf

# If we don't already have the cryptech UART environment variables set, do that now.

if test "X${CRYPTECH_RPC_CLIENT_SERIAL_DEVICE}" = "X"
then
    eval `cryptech_probe`
fi