java/keytool
author Tomas Zeman <tzeman@volny.cz>
Sun, 25 Aug 2013 21:04:14 +0200
changeset 34 11d20ddca9d8
parent 15 f383a7199631
permissions -rw-r--r--
scm/hg-git-rosetta-stone: simplified mapping between hg commands and git commands If you know how to use hg very well and just looking at how to do the same things in git, this page is right for you. Use it like a dictionary hg -> git.

http://community.jboss.org/wiki/GeneratingSelfSignedCertificateWithKeytool
Generating Self Signed Certificate with Keytool

Creating private/public key pair:
keytool -genkey -alias ... -keyalg RSA -validity 365 -keystore server.keystore -storetype JKS

Extracting the public key:
keytool -export -alias ... -keystore server.keystore -rfc -file public.cert

Creating the Truststore:
keytool -import -alias ... -file public.cert -storetype JKS -keystore server.truststore