Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are Client side certificates supported? #223

Closed
favetelinguis opened this issue Jul 9, 2018 · 4 comments
Closed

Are Client side certificates supported? #223

favetelinguis opened this issue Jul 9, 2018 · 4 comments
Labels
Milestone

Comments

@favetelinguis
Copy link

Im trying to port some code from python to Elixir, Tesla looks like a very nice option. However i need client certificates. Currently im using the solution described in the link below under the headline Client side certificates.
http://docs.python-requests.org/en/master/user/advanced/

Is there something similar in Tesla for this?

@chulkilee
Copy link
Contributor

It depends on actual http library.

httpc doc and hackney doc both mention erlang ssl option, which can include client cert (see ssl doc)

It would be nice if tesla doc has examples for this :)

@favetelinguis
Copy link
Author

Im using httpc atm, how can I actually provide the ssl options? Does this not have to be supported in the adapter for me to be able to do it?

@chulkilee
Copy link
Contributor

You can pass any option down to your adapter.

Try something like this:

MyClient.get("/", opts: [adapter: [ssl: [...]]])

For actual ssl option, check out https://elixirforum.com/t/using-client-certificates-from-a-string-with-httposion/8631

@teamon teamon added the docs label Jul 10, 2018
@teamon
Copy link
Member

teamon commented Jul 10, 2018

I agree it should be documented.

@teamon teamon added this to the 1.2 milestone Jul 19, 2018
@teamon teamon closed this as completed in cca999e Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants