jdk/test/sun/security/mscapi/SignUsingNONEwithRSA.sh
changeset 24116 9f9b4ba34aad
parent 14786 a9f61e0cbe61
child 29595 39c82302bcf6
equal deleted inserted replaced
24077:0809c9a4d36e 24116:9f9b4ba34aad
    48 OS=`uname -s`
    48 OS=`uname -s`
    49 case "$OS" in
    49 case "$OS" in
    50     Windows* | CYGWIN* )
    50     Windows* | CYGWIN* )
    51 
    51 
    52         echo "Creating a temporary RSA keypair in the Windows-My store..."
    52         echo "Creating a temporary RSA keypair in the Windows-My store..."
    53         ${TESTJAVA}/bin/keytool \
    53         ${TESTJAVA}/bin/keytool ${TESTTOOLVMOPTS} \
    54 	    -genkeypair \
    54 	    -genkeypair \
    55 	    -storetype Windows-My \
    55 	    -storetype Windows-My \
    56 	    -keyalg RSA \
    56 	    -keyalg RSA \
    57 	    -alias 6578658 \
    57 	    -alias 6578658 \
    58 	    -dname "cn=6578658,c=US" \
    58 	    -dname "cn=6578658,c=US" \
    59 	    -noprompt
    59 	    -noprompt
    60 
    60 
    61         echo
    61         echo
    62 	echo "Running the test..."
    62 	echo "Running the test..."
    63         ${TESTJAVA}/bin/javac -d . ${TESTSRC}\\SignUsingNONEwithRSA.java
    63         ${TESTJAVA}/bin/javac ${TESTTOOLVMOPTS} ${TESTJAVACOPTS} -d . ${TESTSRC}\\SignUsingNONEwithRSA.java
    64         ${TESTJAVA}/bin/java ${TESTVMOPTS} SignUsingNONEwithRSA
    64         ${TESTJAVA}/bin/java ${TESTVMOPTS} SignUsingNONEwithRSA
    65 
    65 
    66         rc=$?
    66         rc=$?
    67 
    67 
    68         echo
    68         echo
    69         echo "Removing the temporary RSA keypair from the Windows-My store..."
    69         echo "Removing the temporary RSA keypair from the Windows-My store..."
    70         ${TESTJAVA}/bin/keytool \
    70         ${TESTJAVA}/bin/keytool ${TESTTOOLVMOPTS} \
    71 	    -delete \
    71 	    -delete \
    72 	    -storetype Windows-My \
    72 	    -storetype Windows-My \
    73 	    -alias 6578658
    73 	    -alias 6578658
    74 
    74 
    75 	echo done.
    75 	echo done.