mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 11:22:55 +09:00
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:
1 parent
1dc7b57748
commit
6dad1c0f1d
1 file changed
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user