when i run this command, i continue to get the following:
Enter keystore password: xxxxxx keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
I also tried the following and received the same error:
D:\Oracle\Infra1012\jdk\bin>keytool -list -v -keystore %ORACLE_HOME%\javavm\lib\security\cacerts Enter keystore password: xxxxxx keytool error: java.io.IOException: Keystore was tampered with, or password was incorrect
Can someone help me see where is the problem and how to fix it please?
thank you very much!
posted 7 years ago
Normally you don't tamper with the existing JRE keystore. What you should do is to (1) create a new keystore (2) import the certificate to the new keystore (3) configure your application to trust the new keystore by setting the system properties "javax.net.ssl.keyStore" and "javax.net.ssl.trustStore" to the location of the new keystore.