If you don’t want to deal with serving Acme challenges through Phoenix, you can use standalone mode: User Guide — Certbot 5.7.0.dev0 documentation
This will generate certificates in /etc/letsencrypt/live/domain_name/ You can then update your config file to point to the certificates
config :app_name, App.Endpoint,
...
https: [:inet6,
port: 443,
keyfile: "/etc/letsencrypt/live/domain_name/privkey.pem",
cacertfile: "/etc/letsencrypt/live/domain_name/chain.pem",
certfile: "/etc/letsencrypt/live/domain_name/cert.pem"]
Caveat: You will need to stop your webserver when you generate/renew certificates in standalone mode (once every 3 months)


















