[GH-ISSUE #510] Installing trust store does not work for opendoas instead of sudo #309

Open
opened 2026-02-25 22:33:04 +03:00 by kerem · 1 comment
Owner

Originally created by @beune on GitHub (Mar 6, 2023).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/510

I have opendoas instead of sudo, and this causes mkcert -install to fail:

Created a new local CA 💥
ERROR: failed to execute "tee": exit status 1

sudo: invalid option -- '-'
usage: doas [-Lns] [-C config] [-u user] command [args]

Can the implementation be updated to support multiple 'sudo' programs?

Originally created by @beune on GitHub (Mar 6, 2023). Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/510 I have `opendoas` instead of `sudo`, and this causes `mkcert -install` to fail: ``` Created a new local CA 💥 ERROR: failed to execute "tee": exit status 1 sudo: invalid option -- '-' usage: doas [-Lns] [-C config] [-u user] command [args] ``` Can the implementation be updated to support multiple 'sudo' programs?
Author
Owner

@ubermanu commented on GitHub (Mar 26, 2023):

I had the same issue and decided to look at it

I've written a small bash script that wraps doas to accept some sudo args (and omit the unsupported ones)

So the "--prompt" arg would be stripped when running mkcert -install

See https://github.com/ubermanu/sudoas/blob/main/sudo.bash

<!-- gh-comment-id:1484120802 --> @ubermanu commented on GitHub (Mar 26, 2023): I had the same issue and decided to look at it I've written a small bash script that wraps doas to accept some sudo args (and omit the unsupported ones) So the "--prompt" arg would be stripped when running `mkcert -install` See https://github.com/ubermanu/sudoas/blob/main/sudo.bash
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#309
No description provided.