I wrote a blog post explaining how to use a local development certificate authority with ejabberd and Phoenix: Using a local development trusted CA on MacOS
Enjoy!