You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for ActionMailer::Base.smtp_settings does not mention using ca_path when showing how to setup sending encrypted emails using an installed ssl certificate. It appears that this has been missing since since at least 2016 as mentioned in this stack overflow post:
The ca_path value for a letsencrypt ssl certificate would be:
/etc/letsencrypt/live/domain.com/fullchain.pem
It is important to note that the fullchain type file is required for the certificate.
It is wise to rescue OpenSSL::SSL::SSLError when using this. If the certificate file cannot be found, an SSL_CTX_load_verify_locations: system lib exception is generated.
ActionMailer::Base.smtp_settings does not appear to support the ca_file setting mentioned in some stack overflow posts.
Rails version 7.1.3.2
Ruby 3.3.0
The text was updated successfully, but these errors were encountered:
The documentation for ActionMailer::Base.smtp_settings does not mention using ca_path when showing how to setup sending encrypted emails using an installed ssl certificate. It appears that this has been missing since since at least 2016 as mentioned in this stack overflow post:
https://stackoverflow.com/questions/36518887/actionmailer-smtp-certificate-verify-failed
Trying to send encrypted emails will not work unless OpenSSL can locate the security certificate file on the server.
An example setup taken from a working application for sending encrypted emails can be stored in config/initializers/send_mail.rb:
The ca_path value for a letsencrypt ssl certificate would be:
/etc/letsencrypt/live/domain.com/fullchain.pem
It is important to note that the fullchain type file is required for the certificate.
It is wise to rescue
OpenSSL::SSL::SSLError
when using this. If the certificate file cannot be found, anSSL_CTX_load_verify_locations: system lib
exception is generated.ActionMailer::Base.smtp_settings does not appear to support the ca_file setting mentioned in some stack overflow posts.
Rails version 7.1.3.2
Ruby 3.3.0
The text was updated successfully, but these errors were encountered: