简体   繁体   中英

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

在此处输入图像描述

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

在此处输入图像描述

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

Thanks!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM