My local firewall is enabled and forwarding from 443 to 8443. Note, I didn’t wanted to use nginx. For a high volume production application you must consider using it.
Not sure if adding “:ssl” to your application configuration is still a requirement:
# Add ssl to application definition m mix.exs
def application do
[
mod: {Epr.Application, []},
extra_applications: [ "your other applications", :ssl]
]
end
I stumbled across this issue when I was dealing with a Comodo (rebranded as Sectigo) cert. I also bought from Namecheap, but was able to resolve this and wanted to leave a note in case others come across this post with the same issue.
Different certs are not provided in the same way. I was getting an error “server is missing an intermediary (broken chain).” The key is matching the correct file to the correct config option. The files you get from Namecheap are:
website_com.ca-bundle
website_com.crt
website_com.p7b
When using Phonenix SSL, basically, they match up to the config like so:
The crt file and ca-bundle file you get in the zip from your issued certificate. The website_com.key file coming from when you generated your csr file that you uploaded to Namecheap to request your cert.