keytool error bash: keytool: command not found

These are the steps which solved my problem:

  • Search the path where my java was installed find / -name jre
  • Move to java directory (where jre was installed on my server) cd /path/to/jre/bin
  • Create SSL certificate with keytool command ./keytool -genkey -alias [mypassword] -keyalg [RSA]

Leave a Comment