Skip to content

Commit

Permalink
Allowed invalid SSL certificates to work
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Mason committed Apr 10, 2012
1 parent 375a8ad commit 1d77a86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions lib/panelbeater/remote.rb
Expand Up @@ -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}"
Expand Down

0 comments on commit 1d77a86

Please sign in to comment.