emqx/examples/psk_authentication.conf.exa...

22 lines
792 B
Plaintext

##--------------------------------------------------------------------
## Pre-Shared Keys authentication
##
## Config to enable TLS-PSK authentication
##--------------------------------------------------------------------
## Note: This is an example of how to configure this feature
## you should copy and paste the below data into the emqx.conf for working
psk_authentication {
## set to false to disable
enable = true
## If init_file is specified, EMQX will import PSKs from the file into the built-in database at startup for use by the runtime
init_file = "psk"
## The separator between PSKIdentity and SharedSecret in the PSK file
separator = ":"
## The size of each chunk used to import to the built-in database from PSK file
chunk_size = 50
}