Friday, September 25, 2015

Using keytools

During early development i have trouble finding keytools or how to access them. Most developer in my understanding are using linux so it's like they can just type the keytools to run.

I tried to configure windows command once for them to be able to read inside JDK folder but now forgot already after upgrading my OS to Win10. This is like shortcut stuff so here goes

Go to your JDK install folder. Mine is here and usually everyone is:
C:\Program Files\Java\jdk1.7.0_79

Shift+RightClick on 'bin' folder and select 'open command windows here'

Now you are inside jdk bin folder and keytools command can be used.

type your keytools command here, for example

keytool -exportcert -alias your-key-name -keystore /path/to/your/keystore/file -list -v

your-key-name is your app-key you create
path should be location of your key ie c:\myapp\hello_world\key.jks

No comments:

Post a Comment