keytool problem

hello.

i new with this technology, i have been reading about keytool and generation of Certificates, exporting and importing certificates...

i was trying the examples from here http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/keytool.html#EXAMPLES...but i only get errors.

keytool error: java.io.Exception: Keystore was tampered with, or password incorrect.

any tips about this.

thanks.

:

[435 byte] By [noe.rochaa] at [2007-10-3 4:14:04]
# 1
Most probably the wrong password as the error message suggests.
ejpa at 2007-7-14 22:15:17 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 2
that would easy to check...but no, thats not the password.
noe.rochaa at 2007-7-14 22:15:17 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 3
Then the keystore has been tampered with, i.e. is corrupt.I would double- and triple-check the password issue personally.
ejpa at 2007-7-14 22:15:17 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 4

i have been following the examples from the keytool manual and using the same storepass and keypass for testing purposes.

it creates a file named keystore on the root i'm working, and i try to export the certificate i get the error described above

Message was edited by:

noe.rocha

noe.rochaa at 2007-7-14 22:15:17 > top of Java-index,Security,Other Security APIs, Tools, and Issues...
# 5
to export the certificate i'm using some examples i found on the Java Almanac 1.4...i don'r really know if this is old stuff or not. do you know some up to date papers, links i could follow?thanks
noe.rochaa at 2007-7-14 22:15:17 > top of Java-index,Security,Other Security APIs, Tools, and Issues...