Skip to content

Commit

Permalink
Add OmniOS (illumos) cacert directories
Browse files Browse the repository at this point in the history
Add in cacert directories for modern illumos distributions to fix no_cacerts_found error.
  • Loading branch information
Pawlicker authored and dgud committed Oct 18, 2023
1 parent e9f1727 commit 52e1e16
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/public_key/src/pubkey_os_cacerts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ load() ->
{unix, netbsd} ->
load_from_file(bsd_paths());
{unix, sunos} ->
load_from_files(sunos_path());
load_from_files(sunos_paths());
{win32, _} ->
load_win32();
{unix, darwin} ->
Expand Down Expand Up @@ -161,8 +161,10 @@ bsd_paths() ->
"/etc/openssl/certs/ca-certificates.crt"
].

sunos_path() ->
"/etc/certs/CA/".
sunos_paths() ->
["/etc/certs/CA/", %% Oracle Solaris, some older illumos distros
"/etc/ssl/cacert.pem" %% OmniOS
].

run_cmd(Cmd, Args) ->
Opts = [binary, exit_status, stderr_to_stdout],
Expand Down

0 comments on commit 52e1e16

Please sign in to comment.