OPENSSL_CONF="../CAtsa.cnf"
export OPENSSL_CONF
+# Because that's what ../apps/CA.sh really looks at
+SSLEAY_CONFIG="-config $OPENSSL_CONF"
+export SSLEAY_CONFIG
-OPENSSL="../util/opensslwrap.sh"
+OPENSSL="`pwd`/../util/opensslwrap.sh"
export OPENSSL
error () {
- echo "ERROR DURING TSA TESTS!!!!!!!!!!!!!!!!" >&2
+ echo "TSA test failed!" >&2
exit 1
}
-untrusted tsa_cert1.pem
# Checks if the verification failed, as it should have.
test $? == 0 && error
+ echo Ok
}
# main functions