The moose likes Security and the fly likes cacerts password missing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "cacerts password missing" Watch "cacerts password missing" New topic

cacerts password missing

James Ellis
Ranch Hand

Joined: Oct 14, 2004
Posts: 205
I inherited a system and I need to do some work on cacerts (import some certificates). So first thing I want to do is change password from the default "changeit"

bash-3.00# /usr/jdk/instances/jdk1.5.0/jre/bin/keytool -storepasswd -keystore /usr/jdk/instances/jdk1.5.0/jre/lib/security/cacerts -new newpassword
Enter keystore password: changeit
keytool error: Keystore was tampered with, or password was incorrect it looks like the password isn't "changeit". If I try with a blank password:

...I get the NPE above. So...does that mean the password has already been changed? If so, is there a way for me to "override" what is already there?

greg stark
Ranch Hand

Joined: Aug 10, 2006
Posts: 220
I believe the password is only used to verify integrity for trusted certificates. So if you try some variant on the following command

you can create a new keystore and have a chance to add a password for integrity checking.

Nice to meet you.
I agree. Here's the link:
subject: cacerts password missing
It's not a secret anymore!