mkcert icon indicating copy to clipboard operation
mkcert copied to clipboard

Incorrect path OS detection

Open s1lver opened this issue 3 years ago • 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.

https://github.com/FiloSottile/mkcert/blob/2a46726cebac0ff4e1f133d90b4e4c42f1edf44a/truststore_linux.go#L36

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

s1lver avatar Jun 06 '22 14:06 s1lver

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

prettyboy42 avatar Nov 27 '22 05:11 prettyboy42

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

s1lver avatar Nov 28 '22 06:11 s1lver