diff options
Diffstat (limited to 'environment.sh')
-rw-r--r-- | environment.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/environment.sh b/environment.sh new file mode 100644 index 0000000..a842d81 --- /dev/null +++ b/environment.sh @@ -0,0 +1,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 |