Permalink
Browse files

Allowed invalid SSL certificates to work

  • Loading branch information...
mrmason committed Apr 10, 2012
1 parent 375a8ad commit 1d77a86d7d0f272e0fda4902c6fd23702726ad55
Showing with 2 additions and 1 deletion.
  1. +1 −1 Rakefile
  2. +1 −0 lib/panelbeater/remote.rb
View
@@ -17,7 +17,7 @@ spec = Gem::Specification.new do |s|
# Change these as appropriate
s.name = "panelbeater"
- s.version = "0.1.5"
+ s.version = "0.1.6"
s.summary = "A gem for communicating with the cPanel and WHM API's"
s.author = "Jamie Dyer"
s.email = "jamie@kernowsoul.com"
@@ -14,6 +14,7 @@ def set_server(options={})
def connect(server, port, command, username, api_key, options={})
http = Net::HTTP.new(server, port)
http.use_ssl = true
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE # Ignore invalid SSL certificates
http.start do |http|
req = Net::HTTP::Get.new "/json-api/#{command}#{map_options_to_url(options)}"
req.add_field 'Authorization', "WHM #{username}:#{api_key}"

0 comments on commit 1d77a86

Please sign in to comment.