Skip to content

Instantly share code, notes, and snippets.

@mperham
Created September 6, 2012 04:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mperham/3651105 to your computer and use it in GitHub Desktop.
Save mperham/3651105 to your computer and use it in GitHub Desktop.
Campfire's SSL cert doesn't verify with Ruby 1.9.3 p194
# This works for me in 1.9.3-p125 but not in p194.
# Can anyone explain why?
require 'net/http'
http = Net::HTTP.new("theclymb1.campfirenow.com", 443)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new("/login")
response = http.request(request)
raise response.inspect if response.code != '200'
@jjb
Copy link

jjb commented Sep 11, 2012

Here is what works for me witih macports and rbenv: https://gist.github.com/2315629

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment