From: <th...@us...> - 2012-04-11 02:38:57
|
Revision: 337 http://nventory.svn.sourceforge.net/nventory/?rev=337&view=rev Author: thepob Date: 2012-04-11 02:38:51 +0000 (Wed, 11 Apr 2012) Log Message: ----------- getting rid of that annoying 'warning: peer certificate won't be verified in this SSL session' warning that the ruby client throws Modified Paths: -------------- trunk/client/ruby/nventory.rb Modified: trunk/client/ruby/nventory.rb =================================================================== --- trunk/client/ruby/nventory.rb 2012-03-13 21:37:05 UTC (rev 336) +++ trunk/client/ruby/nventory.rb 2012-04-11 02:38:51 UTC (rev 337) @@ -1174,6 +1174,7 @@ http.tmp_dh_callback = proc { dh } end http.use_ssl = true + http.verify_mode = OpenSSL::SSL::VERIFY_NONE if @ca_file && File.exist?(@ca_file) http.ca_file = @ca_file http.verify_mode = OpenSSL::SSL::VERIFY_PEER This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |