Papillon6814

Papillon6814

Unknown CA error

Hello.
I’m using elixir-google-api for storing images in google cloud storage.
I use goth for authentication of GCP.

Goth works in my development environment, but it does not work in a docker container.

** (MatchError) no match of right hand side value: {:error, %HTTPoison.Error{id: nil, reason: {:tls_alert, {:unknown_ca, 'TLS client: In state wait_cert_cr at ssl_handshake.erl:1895 generated CLIENT ALERT: Fatal - Unknown CA\n'}}}}

The error occurs in this function.

{:ok, token} = Goth.Token.for_scope("https://www.googleapis.com/auth/cloud-platform")

Do you know any hints?

Unknown CA error in Goth · Issue #99 · peburrows/goth · GitHub

Most Liked

rlopzc

rlopzc

Hello, I had the same issue and is a hackney error with the certificates it uses

The fix:
mix deps.update certifi

https://github.com/certifi/erlang-certifi/issues/46#issuecomment-817872850

tangui

tangui

Are you sure you’ve not erased all other default ssl options, making it vulnerable? See also: Setting versions per example disables ssl validation · Issue #381 · edgurgel/httpoison · GitHub

a8t

a8t

At risk of providing hasty advice, I recently encountered this problem in the Papercups project. I fixed it by bumping Hackney. Hackney had a problem on macos that was fixed recently. I hope that helps and doesn’t send you down the wrong path.

Last Post!

BarWachtel

BarWachtel

Was having the same issue, this resolved it - thanks!

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
nsuchy
Hi. I’ve noticed that Windows Powershell has it’s own IEX command and you cannot access Elixir’s IEX due to the conflict. This isn’t a cr...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

We're in Beta

About us Mission Statement