fix: disable server_name_indication suport
This commit is contained in:
parent
4390c58ebb
commit
3e9b91e53a
|
@ -1,6 +1,6 @@
|
|||
{application, emqx_plugin_libs,
|
||||
[{description, "EMQ X Plugin utility libs"},
|
||||
{vsn, "4.3.2"},
|
||||
{vsn, "4.3.3"},
|
||||
{modules, []},
|
||||
{applications, [kernel,stdlib]},
|
||||
{env, []}
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
|
||||
{VSN,
|
||||
[
|
||||
{<<"4\\.3\\.[0-1]">>, [
|
||||
{<<"4\\.3\\.[0-2]">>, [
|
||||
{load_module, emqx_plugin_libs_ssl, brutal_purge, soft_purge, []}
|
||||
]},
|
||||
{<<".*">>, []}
|
||||
],
|
||||
[
|
||||
{<<"4\\.3\\.[0-1]">>, [
|
||||
{<<"4\\.3\\.[0-2]">>, [
|
||||
{load_module, emqx_plugin_libs_ssl, brutal_purge, soft_purge, []}
|
||||
]},
|
||||
{<<".*">>, []}
|
||||
|
|
|
@ -66,13 +66,23 @@ save_files_return_opts(Options, Dir) ->
|
|||
_ -> verify_peer
|
||||
end,
|
||||
SNI = case Get(<<"server_name_indication">>) of
|
||||
<<"disable">> -> disable;
|
||||
"disable" -> disable;
|
||||
"" -> undefined;
|
||||
<<>> -> undefined;
|
||||
undefined -> undefined;
|
||||
SNI0 -> ensure_str(SNI0)
|
||||
end,
|
||||
Versions = emqx_tls_lib:integral_versions(Get(<<"tls_versions">>)),
|
||||
Ciphers = emqx_tls_lib:integral_ciphers(Versions, Get(<<"ciphers">>)),
|
||||
filter([{keyfile, Key}, {certfile, Cert}, {cacertfile, CA},
|
||||
{verify, Verify}, {server_name_indication, SNI}, {versions, Versions}, {ciphers, Ciphers}]).
|
||||
filter([ {keyfile, Key}
|
||||
, {certfile, Cert}
|
||||
, {cacertfile, CA}
|
||||
, {verify, Verify}
|
||||
, {server_name_indication, SNI}
|
||||
, {versions, Versions}
|
||||
, {ciphers, Ciphers}
|
||||
]).
|
||||
|
||||
%% @doc Save a key or certificate file in data dir,
|
||||
%% and return path of the saved file.
|
||||
|
|
Loading…
Reference in New Issue