testca 522 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. set -e
  3. PERL="$1"
  4. if test "$OSTYPE" = msdosdjgpp; then
  5. PATH="../apps\;$PATH"
  6. else
  7. PATH="../apps:$PATH"
  8. fi
  9. export PATH
  10. export SSLEAY_CONFIG OPENSSL
  11. /bin/rm -fr demoCA
  12. SSLEAY_CONFIG="-config CAss.cnf"
  13. OPENSSL="`pwd`/../util/opensslwrap.sh"
  14. $PERL ../apps/CA.pl -newca </dev/null
  15. SSLEAY_CONFIG="-config Uss.cnf"
  16. $PERL ../apps/CA.pl -newreq
  17. SSLEAY_CONFIG="-config ../apps/openssl.cnf"
  18. yes | $PERL ../apps/CA.pl -sign
  19. $PERL ../apps/CA.pl -verify newcert.pem
  20. /bin/rm -fr demoCA newcert.pem newreq.pem