1998-12-21 11:52:47 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-04-10 18:25:30 +02:00
|
|
|
set -e
|
|
|
|
|
2015-04-08 20:07:39 +02:00
|
|
|
PERL="$1"
|
|
|
|
|
2002-06-13 22:42:35 +02:00
|
|
|
if test "$OSTYPE" = msdosdjgpp; then
|
2005-02-02 00:48:37 +01:00
|
|
|
PATH="../apps\;$PATH"
|
2002-06-13 22:42:35 +02:00
|
|
|
else
|
2005-02-02 00:48:37 +01:00
|
|
|
PATH="../apps:$PATH"
|
2002-06-13 22:42:35 +02:00
|
|
|
fi
|
2015-04-08 20:07:39 +02:00
|
|
|
export PATH
|
1998-12-21 11:52:47 +01:00
|
|
|
|
2015-04-10 18:25:30 +02:00
|
|
|
export SSLEAY_CONFIG="-config CAss.cnf"
|
|
|
|
export OPENSSL="`pwd`/../util/opensslwrap.sh"
|
2005-02-02 00:48:37 +01:00
|
|
|
|
1998-12-21 11:52:47 +01:00
|
|
|
/bin/rm -fr demoCA
|
2015-04-10 16:06:17 +02:00
|
|
|
|
2015-04-10 18:25:30 +02:00
|
|
|
OPENSSL_CONFIG=/dev/null $PERL ../apps/CA.pl -newca </dev/null
|
1998-12-21 11:52:47 +01:00
|
|
|
|
2015-04-10 18:25:30 +02:00
|
|
|
export SSLEAY_CONFIG="-config Uss.cnf"
|
|
|
|
$PERL ../apps/CA.pl -newreq
|
1998-12-21 11:52:47 +01:00
|
|
|
|
1999-01-02 20:01:41 +01:00
|
|
|
SSLEAY_CONFIG="-config ../apps/openssl.cnf"
|
2015-04-10 18:25:30 +02:00
|
|
|
yes | $PERL ../apps/CA.pl -sign
|
1998-12-21 11:52:47 +01:00
|
|
|
|
2015-04-10 18:25:30 +02:00
|
|
|
$PERL ../apps/CA.pl -verify newcert.pem
|
1998-12-21 11:52:47 +01:00
|
|
|
|
|
|
|
/bin/rm -fr demoCA newcert.pem newreq.pem
|