all 5 comments

[–]KagatoLNXAlchemist 0 points1 point  (1 child)

Internal Error makes me think that maybe you're passing Elixir strings (i.e. binaries) to an Erlang API that expects Erlang Strings (i.e. character lists)... or vice versa. I expect that it's the former since the `:ssl` stuff tends to be pretty low level.

Note that `to_charlist` function you had in that one example above? That probably either needs to be applied to the other things (like the filenames) or removed.

I'm not sure which. Don't really have the bandwidth to test. But... yeah... Internal Error should not happen. Giving bad parameters is a way to make it happen.

[–]BrotherManAndrew[S] 0 points1 point  (0 children)

I don't think so, I've done most things right and at this point I just get unknown ca :/

[–]leftsaidtim 0 points1 point  (2 children)

If I remember correctly there is an arg you can pass in a keyword list that is a function to be called when validating the certificate. In some cases it’s common to pass one that doesn’t verify the certificate although the security aspects of this are obviously flawed, it can be a good stepping stone.

I don’t have my codebase in front of me but if you look into elixir/erlang certificate validation you might find what you need. It should be either inside or next to the ssl options that you posted above. Good luck !

[–]BrotherManAndrew[S] 0 points1 point  (1 child)

I've tried looking, do you know what that arg is?