|
|
@@ -557,18 +557,18 @@ certs_dir(Type, Name) ->
|
|
|
iolist_to_binary(filename:join(["listeners", Type, Name])).
|
|
|
|
|
|
convert_certs(CertsDir, Conf) ->
|
|
|
- case emqx_tls_lib:ensure_ssl_files(CertsDir, maps:get(<<"ssl">>, Conf, undefined)) of
|
|
|
+ case emqx_tls_lib:ensure_ssl_files(CertsDir, maps:get(<<"ssl_options">>, Conf, undefined)) of
|
|
|
{ok, undefined} ->
|
|
|
Conf;
|
|
|
{ok, SSL} ->
|
|
|
- Conf#{<<"ssl">> => SSL};
|
|
|
+ Conf#{<<"ssl_options">> => SSL};
|
|
|
{error, Reason} ->
|
|
|
?SLOG(error, Reason#{msg => "bad_ssl_config"}),
|
|
|
throw({bad_ssl_config, Reason})
|
|
|
end.
|
|
|
|
|
|
clear_certs(CertsDir, Conf) ->
|
|
|
- OldSSL = maps:get(<<"ssl">>, Conf, undefined),
|
|
|
+ OldSSL = maps:get(<<"ssl_options">>, Conf, undefined),
|
|
|
emqx_tls_lib:delete_ssl_files(CertsDir, undefined, OldSSL).
|
|
|
|
|
|
filter_stacktrace({Reason, _Stacktrace}) -> Reason;
|