Database Reference
In-Depth Information
jce-6-download-429243.html
(Java 6)
jce-7-download-432124.html
(Java 7)
Then copy
local_policy.jar
and
US_export_policy.jar
under the
$JAVA_HOME/
jre/lib/security
folder.
Since we are done with required configuration, let's explore preparing server certi-
ficates with a simple exercise.
1.
First, generate a keystore for the server using
keytool
:
keytool -genkey -alias servernode -keystore
/home/impadmin/keys/server/server.jks
-storepass server -keypass server
Here,
/home/impadmin/keys/server
is the path to the
folder that contains the keystore file. You may change it accordingly.
Figure 4-24
shows the basic details to be entered when generating a
keystore
.
Figure 4-24
.
Inputs provided during generation of the keystore
2.
Export the public key part from the keystore file:
keytool -export -alias servernode -file
/home/impadmin/keys/publickey.cer -keystore
/home/impadmin/keys/server.jks -storepass
server