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 by Roedy Green ©1996-2009 Canadian Mind Products
index page for letter ⇒ 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)
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 the KeyStore class : available:
.keystore Finder/Viewer
cacerts
certificate
jar
jarsigner.exe
keyman: a more user-friendly .keystore manipulator
keytool.exe
PKCS
RSA cipher: sample code to extract cert from .keystore

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.62] The information on this page is for non-military use only.
You are visitor number 22,148. Military use includes use by defence contractors.
You can get a fresh 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