ssl_dist.conf 627 B

12345678910111213141516
  1. %% The options in the {server, Opts} tuple are used when calling ssl:ssl_accept/3,
  2. %% and the options in the {client, Opts} tuple are used when calling ssl:connect/4.
  3. %%
  4. %% More information at: http://erlang.org/doc/apps/ssl/ssl_distribution.html
  5. [{server,
  6. [
  7. %{log_level, debug}, %% NOTE: debug level logging impacts performance, and need to set EMQX logging level to 'debug'
  8. {certfile, "{{ platform_etc_dir }}/certs/cert.pem"},
  9. {keyfile, "{{ platform_etc_dir }}/certs/key.pem"},
  10. {cacertfile, "{{ platform_etc_dir }}/certs/cacert.pem"},
  11. {verify, verify_none}
  12. ]},
  13. {client,
  14. [
  15. {verify, verify_none}
  16. ]}].