Skip to content

Patched erlang pubkey to make use of SmartOS default CA location - #420

Open
brianewell wants to merge 10000 commits into
TritonDataCenter:trunkfrom
brianewell:trunk
Open

brianewell wants to merge 10000 commits into
TritonDataCenter:trunkfrom
brianewell:trunk

Conversation

@brianewell

Copy link
Copy Markdown

Added /etc/ssl/certs/ca-certificates.crt to the CA cert search path for any platforms that identify as SunOS, which corrects the following error when attempting to use mix to download any libraries or dependencies:

# mix local.hex

20:25:04.589 [error] Task #PID<0.104.0> started from #PID<0.94.0> terminating
** (FunctionClauseError) no function clause matching in :pubkey_os_cacerts.conv_error_reason/1
    (public_key 1.21.2) pubkey_os_cacerts.erl:301: :pubkey_os_cacerts.conv_error_reason(:no_cacerts_found)
    (public_key 1.21.2) pubkey_os_cacerts.erl:56: :pubkey_os_cacerts.get/0
    (mix 1.20.2) lib/mix/utils.ex:883: Mix.Utils.read_httpc/1
    (mix 1.20.2) lib/mix/utils.ex:808: anonymous fn/2 in Mix.Utils.read_path/2
    (elixir 1.20.2) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
    (elixir 1.20.2) lib/task/supervised.ex:40: Task.Supervised.reply/4
Function: #Function<8.68880737/0 in Mix.Utils.read_path/2>
    Args: []
** (EXIT from #PID<0.94.0>) an exception was raised:
    ** (FunctionClauseError) no function clause matching in :pubkey_os_cacerts.conv_error_reason/1
        (public_key 1.21.2) pubkey_os_cacerts.erl:301: :pubkey_os_cacerts.conv_error_reason(:no_cacerts_found)
        (public_key 1.21.2) pubkey_os_cacerts.erl:56: :pubkey_os_cacerts.get/0
        (mix 1.20.2) lib/mix/utils.ex:883: Mix.Utils.read_httpc/1
        (mix 1.20.2) lib/mix/utils.ex:808: anonymous fn/2 in Mix.Utils.read_path/2
        (elixir 1.20.2) lib/task/supervised.ex:105: Task.Supervised.invoke_mfa/2
        (elixir 1.20.2) lib/task/supervised.ex:40: Task.Supervised.reply/4

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants