Skip to content

Commit

Permalink
Fix cert issues by calling ssl_config.set_default_paths on the connec…
Browse files Browse the repository at this point in the history
…tion of the Client class
  • Loading branch information
yaroslav-mo committed May 29, 2024
1 parent 8b878ba commit 2c0f0cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cielo24/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def initialize
def connect
connection = HTTPClient.new
connection.cookie_manager = nil
connection.ssl_config.set_default_paths

unless self.class.options[:verify_mode] == nil
connection.ssl_config.verify_mode = self.class.options[:verify_mode]
Expand Down Expand Up @@ -87,4 +88,4 @@ def get_json(path, params)
JSON.parse(body)
end
end
end
end

0 comments on commit 2c0f0cf

Please sign in to comment.