psk_authentication.conf.example 792 B

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