When trying to download packages to be compiled with rebar3 behind a proxy server, especially in corporate environment with custom CA certificate, there is an error:
TLS client: In state certify at ssl_handshake.erl:2015 generated CLIENT ALERT: Fatal - Unknown CA
The expectation is that you can download packages for compilation on your system, both with mix deps.compile
or with rebar3
.
According to this comment all you have to do is:
.config/rebar3/rebar.config
in your C:\Users\[your username] folder~/.config/rebar3/rebar.config
{ssl_cacerts_path, ["/usr/local/share/ca-certificates/Foo-CA.crt"]}.
Notice the .
and the end of the line, it's important.
After that, you should have no issues.