33 # @run shell ShortRSAKey1024.sh 512
34
35 # set a few environment variables so that the shell-script can run stand-alone
36 # in the source directory
37 if [ "${TESTSRC}" = "" ] ; then
38 TESTSRC="."
39 fi
40
41 if [ "${TESTCLASSES}" = "" ] ; then
42 TESTCLASSES="."
43 fi
44
45 if [ "${TESTJAVA}" = "" ] ; then
46 echo "TESTJAVA not set. Test cannot execute."
47 echo "FAILED!!!"
48 exit 1
49 fi
50
51 OS=`uname -s`
52 case "$OS" in
53 SunOS | Linux | Darwin | CYGWIN* )
54 FS="/"
55 ;;
56 Windows_* )
57 FS="\\"
58 ;;
59 esac
60
61 BITS=$1
62
63 case "$OS" in
64 Windows* | CYGWIN* )
65
66 echo "Removing the keypair if it already exists (for unknown reason)..."
67 ${TESTJAVA}${FS}bin${FS}keytool ${TESTTOOLVMOPTS} \
68 -delete \
69 -storetype Windows-My \
70 -debug \
71 -alias 7106773.$BITS
72
73 echo "Creating a temporary RSA keypair in the Windows-My store..."
|
33 # @run shell ShortRSAKey1024.sh 512
34
35 # set a few environment variables so that the shell-script can run stand-alone
36 # in the source directory
37 if [ "${TESTSRC}" = "" ] ; then
38 TESTSRC="."
39 fi
40
41 if [ "${TESTCLASSES}" = "" ] ; then
42 TESTCLASSES="."
43 fi
44
45 if [ "${TESTJAVA}" = "" ] ; then
46 echo "TESTJAVA not set. Test cannot execute."
47 echo "FAILED!!!"
48 exit 1
49 fi
50
51 OS=`uname -s`
52 case "$OS" in
53 AIX | CYGWIN* | Darwin | Linux | SunOS )
54 FS="/"
55 ;;
56 Windows_* )
57 FS="\\"
58 ;;
59 esac
60
61 BITS=$1
62
63 case "$OS" in
64 Windows* | CYGWIN* )
65
66 echo "Removing the keypair if it already exists (for unknown reason)..."
67 ${TESTJAVA}${FS}bin${FS}keytool ${TESTTOOLVMOPTS} \
68 -delete \
69 -storetype Windows-My \
70 -debug \
71 -alias 7106773.$BITS
72
73 echo "Creating a temporary RSA keypair in the Windows-My store..."
|