fix(tls-partial-chain): stack trace
This commit is contained in:
parent
90efea4765
commit
f8bb1b7b55
|
@ -200,11 +200,10 @@ replace(Opts, Key, Value) -> [{Key, Value} | proplists:delete(Key, Opts)].
|
||||||
rootfun_trusted_ca_from_cacertfile(SslOpts) ->
|
rootfun_trusted_ca_from_cacertfile(SslOpts) ->
|
||||||
Cacertfile = proplists:get_value(cacertfile, SslOpts, undefined),
|
Cacertfile = proplists:get_value(cacertfile, SslOpts, undefined),
|
||||||
try do_rootfun_trusted_ca_from_cacertfile(Cacertfile)
|
try do_rootfun_trusted_ca_from_cacertfile(Cacertfile)
|
||||||
catch _Error:_ ->
|
catch _Error:_Info:ST ->
|
||||||
%% The cacertfile will be checked by OTP SSL as well and OTP choice to be silent on this.
|
%% The cacertfile will be checked by OTP SSL as well and OTP choice to be silent on this.
|
||||||
%% We are touching security sutffs, don't leak extra info..
|
%% We are touching security sutffs, don't leak extra info..
|
||||||
?LOG(error, "Failed to look for trusted cacert from cacertfile. loc: ~p:~p",
|
?LOG(error, "Failed to look for trusted cacert from cacertfile. Stacktrace: ~p", [ST]),
|
||||||
[?MODULE, ?FUNCTION_NAME]),
|
|
||||||
throw({error, ?FUNCTION_NAME})
|
throw({error, ?FUNCTION_NAME})
|
||||||
end.
|
end.
|
||||||
do_rootfun_trusted_ca_from_cacertfile(Cacertfile) ->
|
do_rootfun_trusted_ca_from_cacertfile(Cacertfile) ->
|
||||||
|
|
Loading…
Reference in New Issue