Merge pull request #6536 from tigercl/fix/authn-ssl
fix(authn): attempt to convert certificate content only when TLS is enabled
This commit is contained in:
commit
d781dc73a5
|
@ -872,7 +872,7 @@ fill_defaults(Configs) when is_list(Configs) ->
|
|||
fill_defaults(Config) ->
|
||||
emqx_authn:check_config(Config, #{only_fill_defaults => true}).
|
||||
|
||||
convert_certs(#{ssl := SSLOpts} = Config) ->
|
||||
convert_certs(#{ssl := #{enable := true} = SSLOpts} = Config) ->
|
||||
NSSLOpts = lists:foldl(fun(K, Acc) ->
|
||||
case maps:get(K, Acc, undefined) of
|
||||
undefined -> Acc;
|
||||
|
|
Loading…
Reference in New Issue