-
Notifications
You must be signed in to change notification settings - Fork 266
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
SSL connection options #298
Comments
Hi. Does |
I am running the version |
The EUnit tests within CI do also emit a lot of the same warnings. But only on OTP 24. |
It makes sense that CI emits those warnings, because we don't provide any |
I saw an OTP 24.1.6 update passing by that apparently addresses this issue.
|
So I had my first deep look into gen_smtp and this issue. First of all I would need to inject the following options into the SocketOpts (line linked below). gen_smtp/src/gen_smtp_client.erl Line 798 in 99fad81
Without the Second I will fail at gen_smtp/src/gen_smtp_client.erl Lines 741 to 743 in 99fad81
My mail server seems to not send the But if I bypass the |
I've found two ways of getting rid of the warning when using Perform verification of the certificates.SslOptions = [
{verify, verify_peer},
{depth, 10},
{cacerts, certifi:cacerts()}
],
ssl:connect("example.com", 443, SslOptions). Just like @cw789 says I too needed Skip verification of certificates, but avoid generating the warningSslOptions = [
{verify, verify_none}
],
ssl:connect("example.com", 443, SslOptions). Just like @saleyn I don't manage to pass in these options through the |
Seems like |
I made things work using those settings:
I needed to set tls as disabled or optional because otherwise it seems gen_smtp tries to still do STARTTLS even though the connection is already an SSL/TLS one. I feel like there some hint missing in the docs that Disabling the |
How do you stop getting the following warning when sending SSL/TLS emails?
I am providing the
tls_options
, but it doesn't look like they have any effect:The text was updated successfully, but these errors were encountered: