Disabled HTTPS Server certificate check and warning

git-svn-id: http://svn.opennebula.org/one/trunk@855 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Javier Fontán Muiños committed 2009-10-13 18:19:16 +00:00
1 parent 1dc7b57748
commit 6dad1c0f1d
1 file changed
+5 -1
+5 -1
View File
@@ -69,7 +69,11 @@ module ONEOCCIClient
# is set if needed.
def http_start(url, &block)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = (url.scheme == 'https')
if url.scheme=='https'
http.use_ssl = true
http.verify_mode=OpenSSL::SSL::VERIFY_NONE
end
http.start do |connection|
block.call(connection)
end