mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #88] [macOS Mojave] ERROR: failed to execute "keytool -list" on "mkcert -install" #47
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Zorgatone on GitHub (Nov 1, 2018).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/88
On macOS Mojave 10.14 (18A391) using iTerm2 Build 3.2.5 and zsh 5.6.2 (x86_64-apple-darwin18.0.0)
and Homebrew 1.8.1 Homebrew/homebrew-core (git revision d338a; last commit 2018-11-01)
Installed mkcert with:
Then running command
mkcert -installfails with:@adamdecaf commented on GitHub (Nov 6, 2018):
FYI: I'm upgrading macOS and will look at this soon.
@adamdecaf commented on GitHub (Nov 10, 2018):
Is your
JAVA_HOMEset? I had to set that (afterbrew cask install java):@adamdecaf commented on GitHub (Nov 10, 2018):
https://github.com/FiloSottile/mkcert/pull/90 shows a better error message in this case
@Zorgatone commented on GitHub (Nov 11, 2018):
@adamdecaf it's set in .zshrc but not in .bashrc|.bash-profile|.profile
Might this be the issue?
I launched mkcert from zsh shell though, does it matter?
@adamdecaf commented on GitHub (Nov 13, 2018):
It could be. You could always check the current value with
$ echo $JAVA_HOMEin your shell.Can you try running
mkcertwith JAVA_HOME set explicitly?@Zorgatone commented on GitHub (Nov 14, 2018):
Nope, didn't work either (with zsh)
I also tried setting JAVA_HOME in
.profile(bash)Then I also tried to run with bash (also with explicit JAVA_HOME set)
@adamdecaf commented on GitHub (Nov 19, 2018):
Did you make sure
$JAVA_HOME/bin/keytoolexists and is marked as executable?@Zorgatone commented on GitHub (Nov 22, 2018):
ls: /Library/Java/JavaVirtualMachines/jdk1.8.0_152.jdk/Contents/Home/bin/keytool: No such file or directoryShould keytool be installed automatically along with jre/jdk or does it need an additional step to manually install it?
@Zorgatone commented on GitHub (Nov 22, 2018):
Won't it default to macOS system store if java keytool isn't found?
@adamdecaf commented on GitHub (Nov 23, 2018):
I thought the JRE installs
keytool, but I might be wrong for Java 8.What "it" are you referring to?
@Zorgatone commented on GitHub (Nov 24, 2018):
I'm referring to the mkcert application, if it checks wheter keytool is in the java path, and if it would fallback to the macOs system store in case it's unavailable
@adamdecaf commented on GitHub (Nov 24, 2018):
mkcert installs into the system store regardless if keytool is found or not.
@FernandoBasso commented on GitHub (Apr 16, 2024):
Leaving my two cents here as it might help others and my future self.
Previous comment says:
In my case, I had
openjdk@11installed on macOS andJAVA_HOMEwas set. What I did was simply to unsetJAVA_HOME(in the hopes that it would use whatever was available in macOS and not depend on Java stuff) for that shell session:mkcert -installworked after that.