The HTTP::Client.get
class method has an optional tls
parameter, which you could use to pass a custom OpenSSL::SSL::Context::Client
instance.
ctx = OpenSSL::SSL::Context::Client.new
ctx.verify_mode = OpenSSL::SSL::VerifyMode::NONE
# alternatively:
# ctx = OpenSSL::SSL::Context::Client.insecure
resp = HTTP::Client.get(url, headers, tls: ctx)