Generating Key Pairs and Importing Public Key Certificates to a Trusted Keystore
Through this I am sharing the most simple scenario to follow in using Java keytool for the requirements of Apache Wookie projects digital signature implementation. Anyway if you are looking to know how to generate a key pair or import a certificate to a Keystore using keytool, still this may be helpful. Refer this segment of Java SE documentation to know in-depth details. You needs a configuration of Java in your computer to use keytool and that is enough :). Generating Key Pairs Use following command in command prompt to generate a keypair with a self-signed certificate keytool -genkey -alias wookie -keyalg RSA -keystore wookieKeystore.jks -keysize 4096 After -alias give the alias to be used for keys -keylag give the algorithm to be used in key generation -keystore give the name of the keystore with type .jks (You can give a path here to store the keystore in a desired place) ...