ex-aws / ex_aws

A flexible, easy to use set of clients AWS APIs for Elixir

Home Page:https://hex.pm/packages/ex_aws

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configure SSL/TLS Options

PaulRusuTibreanu opened this issue · comments

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?