Module: Openstack::Helpers::HTTPSClient

Included in:
Client::Storage
Defined in:
lib/openstack/helpers/https_client.rb

Overview

Enables SSL mode for the specified uri.

Instance Method Summary collapse

Instance Method Details

#https_clientObject



7
8
9
10
11
12
# File 'lib/openstack/helpers/https_client.rb', line 7

def https_client
  Net::HTTP.new(uri.host, uri.port).tap do |client|
    client.use_ssl = true
    client.verify_mode = OpenSSL::SSL::VERIFY_NONE
  end
end