[GH-ISSUE #201] mkcert -install keeps telling me that "keytool is not available", when it is? #129

Closed
opened 2026-02-25 22:32:40 +03:00 by kerem · 4 comments
Owner

Originally created by @CaerphillyMediaLtd on GitHub (Sep 20, 2019).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/201

I keep getting:

Warning: "keytool" is not available, so the CA can't be automatically installed in Java's trust store! ⚠️

When it plainly is available, I can just type "keytool" and it works. JAVA_HOME is set just fine. I'm really at a loss because everything else can access it just fine.

Originally created by @CaerphillyMediaLtd on GitHub (Sep 20, 2019). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/201 I keep getting: Warning: "keytool" is not available, so the CA can't be automatically installed in Java's trust store! ⚠️ When it plainly is available, I can just type "keytool" and it works. JAVA_HOME is set just fine. I'm really at a loss because everything else can access it just fine.
kerem 2026-02-25 22:32:40 +03:00
Author
Owner

@FiloSottile commented on GitHub (Sep 20, 2019):

Weird! Can you give us the output of which keytool and echo $PATH? Are you running mkcert with sudo, maybe?

<!-- gh-comment-id:533498799 --> @FiloSottile commented on GitHub (Sep 20, 2019): Weird! Can you give us the output of `which keytool` and `echo $PATH`? Are you running mkcert with sudo, maybe?
Author
Owner

@FiloSottile commented on GitHub (Nov 9, 2019):

Timing out in "waiting for info", feel free to open a new issue with the debug info!

<!-- gh-comment-id:552144191 --> @FiloSottile commented on GitHub (Nov 9, 2019): Timing out in "waiting for info", feel free to open a new issue with the debug info!
Author
Owner

@ajith-sdet commented on GitHub (Jun 26, 2020):

Weird! Can you give us the output of which keytool and echo $PATH? Are you running mkcert with sudo, maybe?

Observed same issue due to wrong path in JAVA_HOME, once correct path is present, issue wasn't observed. Thanks for the tip 'which keytoolandecho $PATH', helped me to resolve it.

<!-- gh-comment-id:650335410 --> @ajith-sdet commented on GitHub (Jun 26, 2020): > Weird! Can you give us the output of `which keytool` and `echo $PATH`? Are you running mkcert with sudo, maybe? Observed same issue due to wrong path in JAVA_HOME, once correct path is present, issue wasn't observed. Thanks for the tip 'which keytool` and `echo $PATH', helped me to resolve it.
Author
Owner

@monchyrcg commented on GitHub (May 26, 2021):

Hi @ajith-sdet what is the JAVA_HOME correct path? echo $PATH return these:
/Users/xxxxxx/bin:/Users/xxxxxx/.dotfiles/modules/dotly/bin:/Users/xxxxxx/.dotfiles/bin:/Library/Java/JavaVirtualMachines/amazon-corretto-15.jdk/Contents/Home/bin:/Users/monchyrcg/.gem/bin:/Users//.go/bin:/Users//.cargo/bin:/usr/local/opt/ruby/bin:/usr/local/opt/python/libexec/bin:/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin

<!-- gh-comment-id:848574928 --> @monchyrcg commented on GitHub (May 26, 2021): Hi @ajith-sdet what is the JAVA_HOME correct path? echo $PATH return these: `/Users/xxxxxx/bin:/Users/xxxxxx/.dotfiles/modules/dotly/bin:/Users/xxxxxx/.dotfiles/bin:/Library/Java/JavaVirtualMachines/amazon-corretto-15.jdk/Contents/Home/bin:/Users/monchyrcg/.gem/bin:/Users//.go/bin:/Users//.cargo/bin:/usr/local/opt/ruby/bin:/usr/local/opt/python/libexec/bin:/opt/homebrew/bin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/mkcert#129
No description provided.