Skip to content

Commit

Permalink
set ssl version and verify mode
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelss committed Feb 28, 2013
1 parent e097683 commit fcfda5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cielo/http.rb
Expand Up @@ -8,8 +8,10 @@ def request(host = nil, port = nil)

http = Net::HTTP.new(host, port)
http.use_ssl = true
http.ssl_version = :TLSv1
http.open_timeout = 10 * 1000
http.read_timeout = 40 * 1000
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
Cielo.logger.info(http.inspect)

post_body = "mensagem=#{to_xml}"
Expand Down

0 comments on commit fcfda5d

Please sign in to comment.