From b2c7e368885924c881a357ff861dfdfb5e55d48d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Valim?= Date: Mon, 30 Sep 2024 16:55:51 +0200 Subject: [PATCH] Also fallback to new HEX_CACERTS_PATH (#399) --- lib/bumblebee/utils/http.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bumblebee/utils/http.ex b/lib/bumblebee/utils/http.ex index b47fbd69..b1365180 100644 --- a/lib/bumblebee/utils/http.ex +++ b/lib/bumblebee/utils/http.ex @@ -188,7 +188,7 @@ defmodule Bumblebee.Utils.HTTP do defp http_ssl_opts() do # Allow a user-specified CA certs to support, for example, HTTPS proxies cacert_opt = - case System.get_env("BUMBLEBEE_CACERTS_PATH") do + case System.get_env("BUMBLEBEE_CACERTS_PATH") || System.get_env("HEX_CACERTS_PATH") do nil -> {:cacerts, :public_key.cacerts_get()} file -> {:cacertfile, file} end