-
Notifications
You must be signed in to change notification settings - Fork 104
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
allow custom ssl options #61
Conversation
I like this, the only thing I would say is instead of |
Thanks @Azolo. Yes, absolutely makes sense! i've changed names and pushed an update. |
test/websockex/conn_test.exs
Outdated
|
||
test "open_socket with custom ssl options", context do | ||
ssl_options = [cacertfile: Path.join([__DIR__, "..", "support", "priv", "websockexca.cer"])] | ||
conn = WebSockex.Conn.new(context.uri, ssl: ssl_options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't match what you have in your example. 😣
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bah .. not only didn't it match the example .. the entire change was missing. no idea how i missed it, sorry for the noise. i've pushed an update.
for a connection which uses client certificates, that would be for example: ``` {:ok, _} = WebSockex.start_link( WebSockex.Conn.new( "wss://host/path", ssl_options: [ cacertfile: "/certificates/ca.pem", certfile: "/certificates/cert.pem", keyfile: "/certificates/key.pem" ] ), __MODULE__, :fake_state ) ```
@Azolo anything else or are we good to go with this? |
thanks a lot! |
@steffkes Thanks for the ping, been super busy and totally forget. |
no worries, i guess every maintainer knows that situation pretty well. a gentle reminder goes a long way :) |
this PR contains the simple change which i've mentioned over at #33. for a connection which uses client certificates, that would be for example: