LibraryLink ToToggle FramesPrintFeedback

Java Keystores

Java keystores provide a convenient mechanism for storing and deploying X.509 certificates and private keys. FUSE Message Broker uses Java keystore files as the standard format for deploying certificates

The Java keystore is a feature of the Java platform Standard Edition (SE) from Sun. To perform the tasks described in this section, you will need to install a recent version of the Java Development Kit (JDK) and ensure that the JDK bin directory is on your path. See http://java.sun.com/javase/.

Sun’s JDK provides a standard file-based implementation of the keystore. The instructions in this section presume you are using the standard keystore. If there is any doubt about the kind of keystore you are configured to use, check the following line in your java.security file (located either in JavaInstallDir/lib/security or JavaInstallDir/jre/lib/security):

keystore.type=jks

The jks (or JKS) keystore type represents the standard keystore.

Java also allows you to provide a custom implementation of the keystore, by implementing the java.security.KeystoreSpi class. For details of how to do this see the following references:

If you use a custom keystore provider, you should consult the third-party provider documentation for details of how to manage certificates and private keys with this provider.

The keystore repository is protected by a store password, which is defined at the same time the keystore is created. Every time you attempt to access or modify the keystore, you must provide the store password.

[Note]Note

The store password can also be referred to as a keystore password or a truststore password, depending on what kind of entries are stored in the keystore file. The function of the password in both cases is the same: that is, to unlock the keystore file.

The keystore provides two distinct kinds of entry for storing certificates and private keys, as follows:

The Java platform SE provides two keystore utilities: keytool and jarsigner. Only the keytool utility is needed here.