FiloSottile/mkcert

Incorrect path OS detection

s1lver opened this issue · 2 comments

Environment

  • Operating system (including version): Ubuntu 20.04
  • mkcert version (from mkcert -version): v1.4.4
  • Server (where the certificate is loaded):
  • Client (e.g. browser, CLI tool, or script):

What you did

mkcert -install

What went wrong

ERROR: failed to execute "update-ca-trust extract": exit code 1
sudo: update-ca-trust: command not found

When calling the mkcert -install, I get an error because I have a directory specific to CentOS/RedHat. But, I have a different OS and there is a specific path for it.

if pathExists("/etc/pki/ca-trust/source/anchors/") {

I think that it is necessary to change the definition method to get rid of this problem.

I had the same problem. Is there any solution for this? Many thanks.

I had the same problem. Is there any solution for this? Many thanks.

Remove or rename temporary directories specific for CentOS/RedHat or manually invoke commands to update the certificate store for Ubuntu