Skip to content

Specify custom CA Cert? #276

Closed Answered by maennchen
DnOberon asked this question in Q&A
Oct 16, 2023 · 3 comments · 15 replies
Discussion options

You must be logged in to vote

This is possible by passing an ssl option to the request_options of most function.

Example:

  • Erlang: oidcc:retrieve_token(AuthCode, Provider, CLientId, ClientSecret, #{request_opts => #{ssl => [{cacerts, YourCert}}
  • Elixir: Oidcc.retrieve_token(auth_code, provider, client_id, client_secret, %{request_opts: %{ssl: [cacerts: your_cert]}})

The request_opts are documented here: https://hexdocs.pm/oidcc/oidcc_http_util.html#t:request_opts/0

Replies: 3 comments 15 replies

Comment options

You must be logged in to vote
15 replies
@maennchen
Comment options

@DnOberon
Comment options

@maennchen
Comment options

@DnOberon
Comment options

@maennchen
Comment options

Answer selected by DnOberon
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #275 on October 16, 2023 19:28.