keystore : Java Glossary

go to home page K words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 Roedy Green, Canadian Mind Products
keystore
In JDK 1.2+, the .keystore file contains your public and private keys. The peculiar leading dot makes the file hidden in Unix.

By default, .keystore has no password, though you normally assign it one with keytool.exe. Don’t lose the password. There is no way to recover it. You have to start over and create a new empty .keystore with keytool.exe.

.keystore is stored in a binary jks format (Java Key Store) similar to PKCS #12 containing both public and private keys, protected by a passphrase. The first four signature bytes of a Sun .keystore file in hex are FEEDFEED.

Location

Since Java does not automatically create .keystore, The sysadmin might put it wherever he pleases. Likely places to look include:

Make sure you back up your .keystore files especially when upgrading your OS or Java. Otherwise you will lose your code signing certificates.

Usually the .keystore file is stored in Sun JKS format, but keytool.exe is capable of dealing with other formats as well. Here is how to find out what other formats are supported on your platform:

Browser Keystores

It is possible for Java to get at the keystores of the various Mozilla family brewers using a tool called JSS (Network Security Services for Java). Java automatically accesses the Windows/Internet Explorer keystores when validating code-signing certificates for Applets and Java Web Start.
Sun’s JDK Technote Guide on Browser keystores : available:
Sun’s Javadoc on KeyStore class : available:
.keystore Finder/Viewer
cacerts
certificate
jar
jarsigner.exe
keyman: a more user-friendly .keystore manipulator
KeyTool IUI: third party GUI version of keytool
keytool.exe
PKCS
RSA cipher: sample code to extract cert from .keystore

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/keystore.html J:\mindprod\jgloss\keystore.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.106]
You are visitor number 27,838.