diff options
Diffstat (limited to 'erlang-certifi-enforce_fedora_ca_bundle.patch')
-rw-r--r-- | erlang-certifi-enforce_fedora_ca_bundle.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/erlang-certifi-enforce_fedora_ca_bundle.patch b/erlang-certifi-enforce_fedora_ca_bundle.patch new file mode 100644 index 0000000..1655238 --- /dev/null +++ b/erlang-certifi-enforce_fedora_ca_bundle.patch @@ -0,0 +1,21 @@ +--- src/certifi.erl.orig 2018-08-11 12:26:46.924043683 +0200 ++++ src/certifi.erl 2018-08-11 12:27:00.485097548 +0200 +@@ -8,17 +8,7 @@ + %% @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 |