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