ex-aws / ex_aws

A flexible, easy to use set of clients AWS APIs for Elixir
https://hex.pm/packages/ex_aws
MIT License
1.26k stars 521 forks source link

Configure SSL/TLS Options #1011

Open PaulRusuTibreanu opened 8 months ago

PaulRusuTibreanu commented 8 months ago

I am trying to implement tls with ex_aws. As I am in development, I have a minio tenant, which provides a self-signed certificate. As such, this is rejected with the error : Unknown CA. So I wrote a function to override it like so in the runtime.exs: config :ex_aws, :s3, scheme: “https://”, host: “minio.tenant”, port: 443, ssl: true, ssl_opts: [verify: :verify_peer, cacertfile: CAStore.file_path(), verify_fun: {&verify_fun_selfsigned_cert/3, [“minio”]}, versions: [:“tlsv1.3”]]. But this does not work as the configuration is obviously not read, probably because ex_aws does not support ssl/tls or its configuration? Can someone tell me if that is the case and how to work around it?