Skip to content

Commit

Permalink
Merge remote-tracking branch 'myself/dgud/public_key/cacerts-sunos/OT…
Browse files Browse the repository at this point in the history
…P-18814' into maint

* myself/dgud/public_key/cacerts-sunos/OTP-18814:
  Add OmniOS (illumos) cacert directories
  • Loading branch information
dgud committed Oct 19, 2023
2 parents 395b237 + 52e1e16 commit 15286ce
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 15286ce

Please sign in to comment.