-
Notifications
You must be signed in to change notification settings - Fork 856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java.io.IOException: Keystore was tampered with, or password was incorrect #4
Comments
Password verification failed. The examples use the default keystore password. The password for the keystore you are trying to use must have been changed. |
Isn't the default keystore password "changeit"? C:\Users\mirandaru>keytool -list -keystore "C:\Program Files\Java\jre1.8.0_101\lib\security Keystore type: JKS Your keystore contains 104 entries digicertassuredidrootca, 16.4.2008, trustedCertEntry, C:\Users\mirandaru> |
I see what the problem is. The 2nd argument to InstallCert is the keystore password you want to use. In your example, it's trying to use 443 as the keystore password. You can leave port 443 off, since it's the default, but if you did want to use a port, your command would be (using the default keystore password of 'changeit'):
|
ouh my bad, thank you! |
On trying to install certificates using the company internal network driven by Cisco Anyconnect Secure Mobility Client, I am not able to proceed further. Kindly find the below issue copy pasted from the console. If there is a possible solution to this problem, kindly let me know. D:>java InstallCert localhost:8090 javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? |
|
java InstallCert github.com 443
Loading KeyStore C:\Program Files\Java\jre1.8.0_101\lib\security\cacerts...
Exception in thread "main" java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at sun.security.provider.KeyStoreDelegator.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at InstallCert.main(InstallCert.java:81)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
... 6 more
The text was updated successfully, but these errors were encountered: