98N/AThis is a multi-stage test. Click on "done" when you have completed
919N/Areading these instructions. For each instruction, make sure the output
919N/Afrom keytool is correct (you can read everything in english fine).
919N/A If you are on a Windows platform, delete the .keystore file in
919N/A<
li> keytool -genkey -v -keysize 512
919N/A Enter "a" for the keystore password. Check error (password too short).
919N/A Enter "password" for the keystore password.
919N/A Re-enter "password" to confirm.
919N/A Hit 'return' for "first and last name", "organizational unit",
919N/A "organization", "City", "State", and "Country Code".
919N/A Type "yes" when they ask you if everything is correct.
919N/A Type 'return' for new key password.
919N/A<
li> keytool -list -v -storepass password
98N/A<
li> keytool -list -v
98N/A Type "a" for the keystore password.
98N/A Check error (wrong keystore password).
98N/A<
li> keytool -genkey -v -keysize 512
98N/A Enter "password" as the password.
98N/A Check error (alias 'mykey' already exists).
156N/A<
li> keytool -genkey -v -keysize 512 -alias mykey2 -storepass password
493N/A Hit 'return' for "first and last name", "organizational unit",
98N/A "organization", "City", "State", and "Country Code".
1551N/A Type "yes" when they ask you if everything is correct.
1551N/A Type 'return' for new key password.
1551N/A Type 'password' for the store password.
970N/A<
li> keytool -keypasswd -v -alias mykey2 -storepass password
970N/A Type "a" for the new key password.
970N/A Type "aaaaaa" for the new key password.
970N/A Type "bbbbbb" when re-entering the new key password.
98N/A Type "a" for the new key password.
1549N/A Check Error (too many failures).
98N/A<
li> keytool -keypasswd -v -alias mykey2 -storepass password
911N/A Type "aaaaaa" for the new key password.
1549N/A Type "aaaaaa" when re-entering the new key password.
1549N/A<
li> keytool -selfcert -v -alias mykey -storepass password
1549N/A<
li> keytool -list -v -storepass password
911N/A<
li> keytool -export -v -alias mykey -file /
tmp/
cert -storepass password
98N/A<
li> keytool -import -v -file /
tmp/
cert -storepass password
1584N/A Check error (Certificate reply and cert are the same)
98N/A<
li> keytool -storepasswd -storepass password -new abc
963N/A Check error (password too short)
963N/A<!--li> keytool -list -storetype PKCS11 963N/A Check error (-keystore must be NONE)--> 963N/A<
li> keytool -storepasswd -storetype PKCS11 -keystore NONE
963N/A Check error (unsupported operation)
963N/A<
li> keytool -keypasswd -storetype PKCS11 -keystore NONE
963N/A Check error (unsupported operation)
98N/A<
li> keytool -list -protected -storepass password
156N/A Check error (password can not be specified with -protected)
<
li> keytool -keypasswd -protected -keypass password
Check error (password can not be specified with -protected)
<
li> keytool -keypasswd -protected -new password
Check error (password can not be specified with -protected)
MSCAPI tests (Only run on Windows)
<
li>keytool -storetype Windows-MY -list
should list entries (may be 0) without asking for password
should not show ****** WARNING WARNING WARNING ****** lines
<
li>keytool -storetype Windows-MY -list -keystore NONE
should list entries without asking for password
<
li>keytool -storetype Windows-MY -list -keystore other
Error: storetype must be NONE
<
li>keytool -storetype Windows-MY -list -storepass changeit
Error: storepass cannot be specfied
<
li>keytool -storetype Windows-MY -list -storepasswd
Error: storepasswd not supported
<
li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass
sun.security.pkcs11.SunPKCS11 -providerArg
p11-nss.txt -genkey -alias genkey -dname cn=genkey -keysize 512 -keyalg rsa
<
li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass
sun.security.pkcs11.SunPKCS11 -providerArg
p11-nss.txt -selfcert -alias genkey -dname cn=selfCert
(check that cert subject DN is [cn=selfCert])
(check for empty database listing)
If all the output (english) is correct, then the test passed.
Otherwise, the test failed.
Press "Pass" if ... press "Fail" otherwise.