require 'net/http'require 'openssl'require 'json'uri = URI('https://10.15.1.227/api/captiveportal/service/searchtemplates') request = Net::HTTP::Get.new(uri)request.basic_auth '123', 'abc' result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true) do |http| http.verify_mode = OpenSSL::SSL::VERIFY_NONE http.request(request)endputs result.body
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
require 'net/http'require 'openssl'require 'json'uri = URI('https://10.15.1.227/api/captiveportal/service/searchtemplates') request = Net::HTTP::Get.new(uri)request.basic_auth '123', 'abc' result = Net::HTTP.start(uri.hostname, uri.port, :use_ssl => true, :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http| http.request(request)endputs result.body