Charles Okwuagwu
Charles Okwuagwu

Reputation: 10866

How to setup SSL correctly on an erlang/ elixir server?

I have a valid Let's Encrypt SSL certificate which works as expected when setup on windows IIS:

https://www.sslshopper.com/ssl-checker.html#hostname=https://paperlesssolutionsltd.com.ng

enter image description here

When I apply same certificate to an Elixir ACE server like so:

certfile: Application.app_dir(@app, "priv/cert.pem"),
keyfile: Application.app_dir(@app, "priv/cert.key")

I get the following errors:

https://www.sslshopper.com/ssl-checker.html#hostname=https://paperlesssolutionsltd.com.ng:8443

enter image description here

Please what does Erlang SSL config require in order to fix this?

Thanks!

Upvotes: 2

Views: 1081

Answers (1)

Charles Okwuagwu
Charles Okwuagwu

Reputation: 10866

Was an erlang issue!

Upgrading to OTP 23.2.4 helped.

Also I had to use a cert file that combined my cert and Lets-encrypt's intermediate file.

Set this to both :certfile and :cacertfile

All credit to @voltone (Bram Verburg)

https://elixirforum.com/t/making-ssl-tests-all-pass-for-phoenix-lets-encrypt/3507/30?u=charleso

Upvotes: 1

Related Questions