How to use key tool on Windows

Last Updated On September 16, 2020
You are here:

In order to use “keytool” command, please follow the steps bellow:

  1. Locate JDK bin directory path. For example in my case it is: C:\Program Files\Java\jdk1.8.0_191\bin
  2. Open a terminal (cmd).
  3. Append the “path” identified in point (1) to “path” system environment variable. In my case the command should be:

set path=%path%;C:\Program Files\Java\jdk1.8.0_191\bin

  1. Just use the keytool command

So, at the end:

Wrong command:

C:\Users\j0s3>keytool

Right command:

C:\Users\j0s3>set path=%path%;C:\Program Files\Java\jdk1.8.0_191\bin


Leave a Reply

Your email address will not be published. Required fields are marked *