openssl/test/testca

30 lines
538 B
Plaintext
Raw Normal View History

#!/bin/sh
set -e
PERL="$1"
2002-06-13 22:42:35 +02:00
if test "$OSTYPE" = msdosdjgpp; then
PATH="../apps\;$PATH"
2002-06-13 22:42:35 +02:00
else
PATH="../apps:$PATH"
2002-06-13 22:42:35 +02:00
fi
export PATH
export SSLEAY_CONFIG="-config CAss.cnf"
export OPENSSL="`pwd`/../util/opensslwrap.sh"
/bin/rm -fr demoCA
OPENSSL_CONFIG=/dev/null $PERL ../apps/CA.pl -newca </dev/null
export SSLEAY_CONFIG="-config Uss.cnf"
$PERL ../apps/CA.pl -newreq
1999-01-02 20:01:41 +01:00
SSLEAY_CONFIG="-config ../apps/openssl.cnf"
yes | $PERL ../apps/CA.pl -sign
$PERL ../apps/CA.pl -verify newcert.pem
/bin/rm -fr demoCA newcert.pem newreq.pem