def post_request(url, params)
uri = URI.parse('https://....')
https = Net::HTTP.new(uri.host, uri.port)
https.use_ssl = true
req = Net::HTTP::Post.new(uri.path)
req.set_form_data(params)
res = https.request(req)
puts res.body
end
提示的错误信息是
OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate has expired)