keytool : Certificate import gives error message - Keystore was tampered with, or password was incorrect
I have got this sorted out. I was using my password that is 'password' to update cacerts keystore in JDK while default password for cacerts keystore is 'changeit'