Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Undocumented ActionMailer openssl_verify_mode option

#6508

In the mail lib used by ActionMailer, there is a really usefull option for people using wildcard and/or self-signed ssl certificates for their mail server : openssl_verify_mode which can take a string value (none, peer, client_once, fail_if_no_peer_cert) or OpenSSL verify mode constant (OpenSSL::SSL::VERIFY_NONE, OpenSSL::SSL::VERIFY_PEER, ...)

This is how i'm using it :

ActionMailer::Base.smtp_settings = {  
  :address              => 'mail.mydomain.net',
  :port                 => 587,  
  :domain               => 'mydomain.net',  
  :user_name            => 'user@mydomain.net',  
  :password             => 'thatsasecret',  
  :authentication       => :login,  
  :enable_starttls_auto => true,  
  :openssl_verify_mode  => 'none' # Only use this option for a self-signed and/or wildcard certificate
}

I think this should be mentioned in the "Configuration options" section of ActionMailer::Base documentation. Some people could really use it and shouldn't have to go in to the mail lib documentation to find it.

Reported by Florent Piteau · March 2nd, 2011 @ 06:07 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Vijay Dev
    Vijay Dev
    • Tag changed from rails 30, actionmailer, certificate, openssl_verify_mode, self-signed, ssl, verify, wildcard to rails 30, actionmailer, certificate, documentation, openssl_verify_mode, self-signed, ssl, verify, wildcard

    Hi Florent,

    If you can do the documentation, you can make it directly in docrails. That repo has public commit access. You can make the changes and push it there. Thanks!

    March 2nd, 2011 @ 07:54 PM

  2. Florent Piteau