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.

[PATCH] Ability to set SSL options on ActiveResource connections

#2370

ActiveResource currently has no means to set SSL connection options. Ability to do so is useful when, for example, the server requires X509 certificate peer authentication.

Attached patch adds the ability to specify SSL options on ActiveResource connections.

This patch may also address #781 ActiveResource should allow SSL verification and #1872 use of undocumented (?) Net::HTTP method breaks 2.3 on Ruby 1.9.1 as well.

Reported by rnicholson · March 29th, 2009 @ 05:56 AM

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

Activity

  1. rnicholson
    rnicholson

    Updating patch with latest as of this moment.

    May 23rd, 2009 @ 04:06 AM

  2. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from activeresource, patch, ssl to activeresource, bugmash, patch, ssl

    August 6th, 2009 @ 02:48 PM

  3. Dan Pickett
    Dan Pickett

    +1 for the feature

    could not get this to apply cleanly to 2-3-stable or master

    I'm not sure this belongs in 2.x, though. Maybe edge? I wonder too if we could put all this configuration in a module - lots of great and usable configuration, though

    August 8th, 2009 @ 11:45 PM

  4. Elad Meidar
    Elad Meidar

    +1 for feature, definitely missing -1 on patch, "Patch does not have a valid e-mail address."

    August 9th, 2009 @ 03:08 AM

  5. rnicholson
    rnicholson

    Updated patch.

    Agree that this isn't 2.x. I'm not sure how it got that tag. If I did it, sorry about that.

    August 9th, 2009 @ 04:26 AM

  6. rnicholson
    rnicholson

    Updated patch again to merge cleanly with changes from a0caad5255ed120192755fce10960a38b53c056d

    August 9th, 2009 @ 07:21 PM

  7. rnicholson
  8. David Trasbo
    David Trasbo

    -1

    The idea is good but the patch does not apply to edge Rails.

    August 9th, 2009 @ 07:41 PM

  9. rnicholson
    rnicholson

    can you explain? git apply ares_ssl_options.diff works fine for me in master.

    Am I doing something wrong in making the patch?

    August 9th, 2009 @ 08:59 PM

  10. Elad Meidar
    Elad Meidar

    +1 verified

    patch applies on master with warnings:

    Applying: Add ability to set SSL options on ARes connections.
    /Users/eladmeidar/projects/bugmash/vendor/rails/.git/rebase-apply/patch:27: trailing whitespace.
      # 
    /Users/eladmeidar/projects/bugmash/vendor/rails/.git/rebase-apply/patch:38: trailing whitespace.
      #  
    /Users/eladmeidar/projects/bugmash/vendor/rails/.git/rebase-apply/patch:54: trailing whitespace.
          # * <tt>:verify_depth</tt> - The maximum depth for the certificate chain verification.  
    /Users/eladmeidar/projects/bugmash/vendor/rails/.git/rebase-apply/patch:55: trailing whitespace.
          # * <tt>:cert_store</tt> - OpenSSL::X509::Store to verify peer certificate.  
    /Users/eladmeidar/projects/bugmash/vendor/rails/.git/rebase-apply/patch:61: trailing whitespace.
          
    warning: squelched 1 whitespace error
    warning: 6 lines add whitespace errors.
    

    August 9th, 2009 @ 09:23 PM

  11. Repository
  12. Repository
  13. CancelProfileIsBroken
    CancelProfileIsBroken
    • Tag changed from activeresource, bugmash, patch, ssl to activeresource, patch, ssl
    • Milestone cleared.

    August 9th, 2009 @ 10:05 PM