jdk/test/sun/security/tools/keytool/trystore.sh
changeset 24116 9f9b4ba34aad
parent 23010 6dadb192ad81
equal deleted inserted replaced
24077:0809c9a4d36e 24116:9f9b4ba34aad
    41     ;;
    41     ;;
    42 esac
    42 esac
    43 
    43 
    44 rm trystore.jks 2> /dev/null
    44 rm trystore.jks 2> /dev/null
    45 
    45 
    46 KEYTOOL="${TESTJAVA}${FS}bin${FS}keytool -storetype jks -keystore trystore.jks -keyalg rsa"
    46 KEYTOOL="${TESTJAVA}${FS}bin${FS}keytool ${TESTTOOLVMOPTS} -storetype jks -keystore trystore.jks -keyalg rsa"
    47 $KEYTOOL -genkeypair -alias a -dname CN=A -storepass changeit -keypass changeit
    47 $KEYTOOL -genkeypair -alias a -dname CN=A -storepass changeit -keypass changeit
    48 $KEYTOOL -genkeypair -alias b -dname CN=B -storepass changeit -keypass changeit
    48 $KEYTOOL -genkeypair -alias b -dname CN=B -storepass changeit -keypass changeit
    49 
    49 
    50 # We use -protected for JKS keystore. This is illegal so the command should
    50 # We use -protected for JKS keystore. This is illegal so the command should
    51 # fail. Then we can check if the keystore is damaged.
    51 # fail. Then we can check if the keystore is damaged.