-
Notifications
You must be signed in to change notification settings - Fork 16
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
Default SSL Options don't work in OTP-26+ #80
Comments
Hi!
default_ssl_options(Host, Ssl) ->
case Ssl of
false -> [];
true -> [
{verify, verify_peer},
{cacerts, public_key:cacerts_get()},
{server_name_indication, binary_to_list(Host)},
{customize_hostname_check, [
{match_fun, public_key:pkix_verify_hostname_match_fun(https)}
]}
]
end. Which solves the settings for SSL. Maybe this should be merged directly to the |
That looks fab to me! Though I must admit I'm not very familiar with configuring SSL in Erlang 😁 |
I'm not sure @tsloughter wanted to push it in |
See #77
Also, it'd be great if, like say Ruby's
pg
, we could maybe automatically enable ssl when needed.The text was updated successfully, but these errors were encountered: