problem when decrypting (is this a bug)
Hi
Actually I resolved my problem but I wanted to know if this is a bug, report it to Sun, and also I want if someone encounters this problem, may be this thread help her/him
I create a JKS file (keystore file) using keytool
keytool -genkey -keyalg RSA -alias myalias -keypass kpass -storepass spass -keysize 1024 -keystore keystorefile.jks -validity 365
and then I want to export this keystore to a cert file
keytool -storepass spass -alias myalias -export -keystore keystorefile.jks -file certfile.cer
but when I decrypt using this keystore I get following error
Keystore was tampered with, or password was incorrect
so after a toiling I understand I should remove -keypass and -storepass options from the command line and let the program ask for them. so the problem has gone
do you think it is a bug? or somewhere I made mistake?

