i18n.html revision 0
98N/A<html>
98N/A<body>
1276N/A
98N/A<applet width=100 height=100 code=i18n.class>
1549N/A</applet>
98N/A
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
919N/A<ol>
919N/A<li> rm ~/.keystore
919N/A If you are on a Windows platform, delete the .keystore file in
919N/A your home directory.
919N/A<li> keytool -help
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<li> keytool -list -v
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)
1584N/A<li> keytool -printcert -file /tmp/cert
1276N/A<li> keytool -list -storepass password -provider sun.security.provider.Sun
98N/A</ol>
98N/A
98N/AError tests
98N/A
98N/A<ol>
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)
</ol>
MSCAPI tests (Only run on Windows)
<ol>
<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
</ol>
PKCS#11 tests
<ol>
<li> sccs edit cert8.db key3.db
<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 -list
<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list -alias genkey
<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
<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
<li> keytool -printcert -file genkey.cert
<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
<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list -alias genkey -v
(check that cert subject DN is [cn=selfCert])
<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -delete -alias genkey
<li> keytool -keystore NONE -storepass test12 -storetype PKCS11 -providerName SunPKCS11-nss -providerClass sun.security.pkcs11.SunPKCS11 -providerArg p11-nss.txt -list
(check for empty database listing)
<li> sccs unedit cert8.db key3.db
</ol>
If all the output (english) is correct, then the test passed.
Otherwise, the test failed.
Press "Pass" if ... press "Fail" otherwise.
</body>
</html>