Skip to content

Commit

Permalink
Merge pull request #2 from gsandie/ssl_verify
Browse files Browse the repository at this point in the history
Switch off verification before connecting
  • Loading branch information
thommay committed May 2, 2012
2 parents 94154e3 + 4167493 commit 7eb9b5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hobelar.rb
Expand Up @@ -18,8 +18,8 @@ def initialize(noit, cert, key, ca_file, opts={})
@key = key
@ca_file = ca_file
Excon.defaults[:ssl_ca_file] = @ca_file
@connect = Excon.new(noit, {:client_cert => @cert, :client_key => @key })
Excon.ssl_verify_peer = false if opts[:no_peer]
@connect = Excon.new(noit, {:client_cert => @cert, :client_key => @key })
end

def get_check(uuid, path=nil)
Expand Down

0 comments on commit 7eb9b5e

Please sign in to comment.