[GH-ISSUE #451] Incorrect path OS detection #290

Open
opened 2026-02-25 22:33:02 +03:00 by kerem · 2 comments
Owner

Originally created by @s1lver on GitHub (Jun 6, 2022).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/451

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.

github.com/FiloSottile/mkcert@2a46726ceb/truststore_linux.go (L36)

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

Originally created by @s1lver on GitHub (Jun 6, 2022). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/451 ## 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.
Author
Owner

@prettyboy42 commented on GitHub (Nov 27, 2022):

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

<!-- gh-comment-id:1328172733 --> @prettyboy42 commented on GitHub (Nov 27, 2022): I had the same problem. Is there any solution for this? Many thanks.
Author
Owner

@s1lver commented on GitHub (Nov 28, 2022):

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

<!-- gh-comment-id:1328603254 --> @s1lver commented on GitHub (Nov 28, 2022): > 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
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#290
No description provided.