Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allowed invalid SSL certificates to work

  • Loading branch information...
commit 1d77a86d7d0f272e0fda4902c6fd23702726ad55 1 parent 375a8ad
@mrmason mrmason authored
Showing with 2 additions and 1 deletion.
  1. +1 −1  Rakefile
  2. +1 −0  lib/panelbeater/remote.rb
View
2  Rakefile
@@ -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"
View
1  lib/panelbeater/remote.rb
@@ -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}"
Please sign in to comment.
Something went wrong with that request. Please try again.