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
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
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
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
Popular in Questions
Other popular topics
Latest Phoenix Threads
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security










