• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

cacerts password missing

 
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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: java.io.IOException: Keystore was tampered with, or password was incorrect

...so 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?

Thanks,
Jim
 
Ranch Hand
Posts: 220
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic