Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    @user217929 how can we solve this problem by adding keytool to $PATH so that the command can be executed from any directory? Commented May 23, 2017 at 9:10
  • 9
    Add export PATH=$PATH:/path/to/jre/bin to your .bashrc file. Commented Aug 22, 2017 at 12:04
  • 1
    note that the keytool is not in the jre folder, but in the bin folder Commented Feb 6, 2020 at 7:05
  • People who are facing this issue inside docker image( I faced it in logstash 7.16.1), can use RUN cd ../.. && find / -iname keytool to find the correct path of it and change it in Dockerfile. Also, these debugging steps will be applicable to cacert file. Commented Dec 16, 2021 at 6:30
  • alias keytool=$JAVA_HOME/bin/keytool Commented May 4, 2022 at 11:49