Setting Up Self-Signed HTTPS Certificates for Phoenix Development on macOS

15
clicks
Setting Up Self-Signed HTTPS Certificates for Phoenix Development on macOS

Source: yellowduck.be

Type: Post

This article provides a step-by-step guide on how to generate and use self-signed HTTPS certificates in your Phoenix application during local development on macOS. It covers generating the certificate using the `mix phx.gen.cert` command, importing the certificate into the macOS Login keychain to avoid security warnings in your browser, and configuring your Phoenix application to use the certificate for HTTPS. By following these steps, developers can ensure secure connections in their development environment, facilitating testing of features like secure cookies and redirects.

© HashMerge 2025