Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  Add OmniOS (illumos) cacert directories
  • Loading branch information
dgud committed Oct 19, 2023
2 parents 1a3d53c + 15286ce commit dd57c85
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 @@ -62,7 +62,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 @@ -169,8 +169,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 dd57c85

Please sign in to comment.