mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
71a4f2832c
For now, I'm moving them into Attic/. They will be removed later. Reviewed-by: Rich Salz <rsalz@openssl.org>
32 lines
522 B
Bash
32 lines
522 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
PERL="$1"
|
|
|
|
if test "$OSTYPE" = msdosdjgpp; then
|
|
PATH="../apps\;$PATH"
|
|
else
|
|
PATH="../apps:$PATH"
|
|
fi
|
|
export PATH
|
|
|
|
export SSLEAY_CONFIG OPENSSL
|
|
|
|
/bin/rm -fr demoCA
|
|
|
|
SSLEAY_CONFIG="-config CAss.cnf"
|
|
OPENSSL="`pwd`/../util/opensslwrap.sh"
|
|
|
|
$PERL ../apps/CA.pl -newca </dev/null
|
|
|
|
SSLEAY_CONFIG="-config Uss.cnf"
|
|
$PERL ../apps/CA.pl -newreq
|
|
|
|
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
|