{true, CertFile} when CertFile /= undefined -> DefaultOpts;
{_, _} ->
case ejabberd_config:get_option(
- {c2s_certfile, LServer},
+ {domain_certfile, LServer},
ejabberd_config:get_option(
- {domain_certfile, LServer})) of
+ {c2s_certfile, LServer})) of
undefined -> DefaultOpts;
CertFile -> lists:keystore(certfile, 1, DefaultOpts,
{certfile, CertFile})
-spec tls_options(binary(), [proplists:property()]) -> [proplists:property()].
tls_options(LServer, DefaultOpts) ->
TLSOpts1 = case ejabberd_config:get_option(
- {s2s_certfile, LServer},
+ {domain_certfile, LServer},
ejabberd_config:get_option(
- {domain_certfile, LServer})) of
+ {s2s_certfile, LServer})) of
undefined -> DefaultOpts;
CertFile -> lists:keystore(certfile, 1, DefaultOpts,
{certfile, CertFile})