Keytool is an external tool provided by java so I guess it's juste a matter of path on your system ... Here is what I have on linux. As the doc says, you should create this file /etc/cas/thekeystore as cas expects by default and, without any file extension.
Prior to that, check this (let's assume you installed openjdk 21 in /usr/lib/jvm/java-21-openjdk-amd64/ ): cat /etc/environment JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64/ echo $JAVA_HOME /usr/lib/jvm/java-21-openjdk-amd64/ I also linked java folder to default-java : sudo ln -s java-21-openjdk-amd64 default-java /usr/lib/jvm$ ls -al lrwxrwxrwx 1 root root 21 Oct 17 2023 default-java -> java-21-openjdk-amd64 [...] drwxr-xr-x 8 root root 4096 Apr 23 15:08 java-21-openjdk-amd64 [...] You might also update alternatives on your system : sudo update-alternatives --install /usr/bin/keytool keytool /usr/lib/jvm/java-21-openjdk-amd64/bin/keytool 1 sudo update-alternatives --config keytool Le mercredi 3 juillet 2024 à 15:22:09 UTC+2, Benjamin Chang a écrit : I've tried running it out of gradlew with your command and it doesn't seem to recognize keytool despite my environmental variables being java_21 and the bin folder has the ./keytool.exe -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/fc822476-5158-408a-ae96-6e7060a00ef6n%40apereo.org.