mosquitto.conf 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. log_type error
  2. log_type warning
  3. log_type notice
  4. log_type information
  5. #log_type debug
  6. #log_dest file /var/log/mosquitto/tls-testing.log
  7. allow_anonymous true
  8. password_file test/tls-testing/mosquitto.pw
  9. #message_size_limit 5000000
  10. # non-SSL listeners
  11. listener 1883
  12. listener 18883
  13. # listener for mutual authentication
  14. listener 18884
  15. cafile test/ssl/all-ca.crt
  16. certfile test/ssl/server.crt
  17. keyfile test/ssl/server.key
  18. require_certificate true
  19. use_identity_as_username false
  20. #tls_version tlsv1
  21. # server authentication - no client authentication
  22. listener 18885
  23. protocol websockets
  24. cafile test/ssl/all-ca.crt
  25. certfile test/ssl/server.crt
  26. keyfile test/ssl/server.key
  27. require_certificate false
  28. #tls_version tlsv1
  29. listener 18886
  30. cafile test/tls-testing/keys/all-ca.crt
  31. certfile test/ssl/server.crt
  32. keyfile test/ssl/server.key
  33. require_certificate false
  34. #ciphers ADH-DES-CBC-SHA
  35. #tls_version tlsv1
  36. # server authentication - no client authentication - uses fake hostname to
  37. # simulate mitm attack. Clients should refuse to connect to this listener.
  38. listener 18887
  39. #cafile test/tls-testing/keys/all-ca.crt
  40. cafile test/tls-testing/keys/server/server.crt
  41. certfile test/tls-testing/keys/server/server-mitm.crt
  42. keyfile test/tls-testing/keys/server/server-mitm.key
  43. require_certificate true
  44. #tls_version tlsv1
  45. # TLS-PSK authentication
  46. listener 18888
  47. ciphers PSK-AES128-CBC-SHA
  48. psk_hint Test
  49. psk_file test/tls-testing/mosquitto.psk