diff --git a/_scripts/src/create-releases.erl b/_scripts/src/create-releases.erl index be1bc10f62..e36f0c2151 100644 --- a/_scripts/src/create-releases.erl +++ b/_scripts/src/create-releases.erl @@ -197,10 +197,10 @@ pmap(Fun, List) -> #{ host := Hostname } = uri_string:parse(Url), VerifyFun = {fun ssl_verify_hostname:verify_fun/3, [{check_hostname, Hostname}]}, - %% CACerts = certifi:cacerts(), - [{ssl,[{verify, verify_peer}, - {cacertfile, "/etc/ssl/certs/ca-certificates.crt"}, - {verify_fun, VerifyFun}, - {customize_hostname_check, - [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]} - ]}]. + CACerts = public_key:cacerts_get(), + [{ssl,[{verify, verify_peer}, + {cacerts, CACerts}, + {verify_fun, VerifyFun}, + {customize_hostname_check, + [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]} + ]}]. diff --git a/_scripts/src/gh.erl b/_scripts/src/gh.erl index f595f2b617..e4afbc210c 100644 --- a/_scripts/src/gh.erl +++ b/_scripts/src/gh.erl @@ -57,9 +57,9 @@ ssl_opts(Url) -> #{ host := Hostname } = uri_string:parse(Url), VerifyFun = {fun ssl_verify_hostname:verify_fun/3, [{check_hostname, Hostname}]}, - %% CACerts = certifi:cacerts(), + CACerts = public_key:cacerts_get(), [{ssl,[{verify, verify_peer}, - {cacertfile, "/etc/ssl/certs/ca-certificates.crt"}, + {cacerts, CACerts}, {verify_fun, VerifyFun}, {customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}