i18n.html revision 0
7eaaa8a4480370b82ef3735994f986f338fb4df2vboxsyncThis is a multi-stage test. Click on "done" when you have completed
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncreading these instructions. For each instruction, make sure the output
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncfrom keytool is correct (you can read everything in english fine).
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> rm ~/.keystore
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync If you are on a Windows platform, delete the .keystore file in
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync your home directory.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -help
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -genkey -v -keysize 512
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Enter "a" for the keystore password. Check error (password too short).
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Enter "password" for the keystore password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Re-enter "password" to confirm.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Hit 'return' for "first and last name", "organizational unit",
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync "organization", "City", "State", and "Country Code".
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "yes" when they ask you if everything is correct.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type 'return' for new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -list -v -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -list -v
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "a" for the keystore password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (wrong keystore password).
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -genkey -v -keysize 512
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Enter "password" as the password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (alias 'mykey' already exists).
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -genkey -v -keysize 512 -alias mykey2 -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Hit 'return' for "first and last name", "organizational unit",
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync "organization", "City", "State", and "Country Code".
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "yes" when they ask you if everything is correct.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type 'return' for new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -list -v
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type 'password' for the store password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -keypasswd -v -alias mykey2 -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "a" for the new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "aaaaaa" for the new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "bbbbbb" when re-entering the new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "a" for the new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check Error (too many failures).
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -keypasswd -v -alias mykey2 -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "aaaaaa" for the new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Type "aaaaaa" when re-entering the new key password.
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -selfcert -v -alias mykey -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -list -v -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -export -v -alias mykey -file /tmp/cert -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -import -v -file /tmp/cert -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (Certificate reply and cert are the same)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -list -storepass password -provider sun.security.provider.Sun
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -storepasswd -storepass password -new abc
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (password too short)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<!--li> keytool -list -storetype PKCS11
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (-keystore must be NONE)-->
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -storepasswd -storetype PKCS11 -keystore NONE
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (unsupported operation)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -keypasswd -storetype PKCS11 -keystore NONE
058e9c6d97c5306126f83d934148c658804f1d6cvboxsync Check error (unsupported operation)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -list -protected -storepass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (password can not be specified with -protected)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -keypasswd -protected -keypass password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (password can not be specified with -protected)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync<li> keytool -keypasswd -protected -new password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Check error (password can not be specified with -protected)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsyncMSCAPI tests (Only run on Windows)
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync <li>keytool -storetype Windows-MY -list
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync should list entries (may be 0) without asking for password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync should not show ****** WARNING WARNING WARNING ****** lines
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync <li>keytool -storetype Windows-MY -list -keystore NONE
aa4bcf0a4b2db3ac352b56a291d49cb8d4b66d32vboxsync should list entries without asking for password
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync <li>keytool -storetype Windows-MY -list -keystore other
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Error: storetype must be NONE
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync <li>keytool -storetype Windows-MY -list -storepass changeit
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Error: storepass cannot be specfied
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync <li>keytool -storetype Windows-MY -list -storepasswd
37136b5ecb07042e5ba50f86849a79d1cba5d5f1vboxsync Error: storepasswd not supported
40b7f0c2d3f97e0c6171f34f96ec3e05eea44d72vboxsyncPKCS#11 tests
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync<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
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list -alias genkey
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -certreq -alias genkey -file genkey.certreq
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -export -alias genkey -file genkey.cert
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsync<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
b6cc138b99f86c2d29ecfe32cecf9f68ba5e73afvboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list -alias genkey -v
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync(check that cert subject DN is [cn=selfCert])
0e5731ab59b4ecead38375f26eeea698f00b19fdvboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -delete -alias genkey
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list
a7aa94e0115a73841f34ebbfa00f63fa1904e51fvboxsync(check for empty database listing)
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncIf all the output (english) is correct, then the test passed.
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncOtherwise, the test failed.
d67d8d3162b0d9cac99842fc7da74e8371453046vboxsyncPress "Pass" if ... press "Fail" otherwise.