Sophie

Sophie

distrib > Mageia > 9 > armv7hl > by-pkgid > 2be2ccbb3946f00fb9b176c61ef57dd2 > files > 2

erlang-certifi-2.9.0-1.mga9.src.rpm

diff --git a/src/certifi.erl b/src/certifi.erl
index 6280642..a50d9cf 100644
--- a/src/certifi.erl
+++ b/src/certifi.erl
@@ -7,21 +7,11 @@
 %% @doc CACertFile gives the path to the file with an X.509 certificate list
 %% containing the Mozilla CA Certificate that can then be used via the
 %% cacertfile setting in ssl options passed to the connect function.
-cacertfile() ->
-  PrivDir = case code:priv_dir(certifi) of
-    {error, _} ->
-      %% try to get relative priv dir. useful for tests.
-      AppDir = filename:dirname(
-                 filename:dirname(code:which(?MODULE))
-                ),
-      filename:join(AppDir, "priv");
-    Dir -> Dir
-  end,
-  filename:join(PrivDir, "cacerts.pem").
+cacertfile() -> '/etc/ssl/certs/ca-bundle.crt'.
 
 %% @doc CACerts builds an X.509 certificate list containing the Mozilla CA
 %% Certificate that can then be used via the cacerts setting in ssl options
 %% passed to the connect function.
 -spec cacerts() -> [binary(),...].
 cacerts() ->
-    ok.
\ No newline at end of file
+    ok.