FiloSottile/mkcert

Installing trust store does not work for opendoas instead of sudo

beune opened this issue · 1 comments

beune commented

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?

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