Posts

Showing posts from December, 2012

Important Java Keytool commands

The Most Common Java Keytool Keystore Commands Java Keytool is a key and certificate management utility. It  allows users to manage their own public/private key pairs and certificates . It also allows users to cache certificates. Java Keytool stores the keys and certificates in what is called a keystore. By default the Java keystore is implemented as a file. It protects private keys with a password. A  Keytool keystore contains the private key and any certificates necessary to complete a chain of trust and establish the trustworthiness of the primary certificate. Each certificate in a Java keystore is associated with a unique alias. When creating a Java keystore you will first create the .jks file that will initially only contain the private key. You will then generate a  CSR  and have a certificate generated from it. Then you will import the certificate to the keystore including any root certificates. Java Keytool also several other functions that allow you to view the detail