FiloSottile / mkcert

A simple zero-config tool to make locally trusted development certificates with any names you'd like.
https://mkcert.dev
BSD 3-Clause "New" or "Revised" License
48.83k stars 2.53k forks source link

Basic commands don't work on macOS after brew install (mkcert -install, -CAROOT responds with "unknown option") #557

Closed kopeboy closed 11 months ago

kopeboy commented 11 months ago

Environment

What you did

  1. brew uninstall --ignore-dependencies mkcert => ok
  2. brew install mkcert => ok
  3. mkcert -install => error: unknown option
  4. mkcert -CAROOT => error: unknown option

What went wrong

I don't know. Maybe multiple copies of go on my machine, or an installation in a non-canonical location, or a problem with the homebrew script? I had installed mkcert in a local node.js app so maybe it conflicted? I have removed it and reinstalled from brew but still getting unknown option errors..

kopeboy commented 11 months ago

Also, is it normal that mkcert --help output doesn't contain the important -install option!?

Usage: mkcert [options] [command]

Options:
  -V, --version                             output the version number
  -h, --help                                display help for command

Commands:
  create-ca [options]
  create-cert|create-certificate [options]
  help [command]                            display help for command
kopeboy commented 11 months ago

I have 466 certificates on my machine, I don't even know where to start 😅 image

rfay commented 11 months ago

Your mkcert is not the mkcert from this project. You should close this issue and install the mkcert from this project, thanks!

ctrl-alter-ego commented 6 months ago

I also had this problem (yes, with this project) and switching into zsh before running mkcert -install worked for me.