|
setup diary | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
https = Net::HTTP.new(host,443)
https.use_ssl = true
https.ca_file='root.pem'
https.verify_mode = OpenSSL::SSL::VERIFY_PEER
https.verify_depth = 5
https.start { |w|
response = w.get('/index.html')
puts response.body
}
SSLのことはさっぱり理解していないが、これでおそらくきちんとしたアクセスなのだと思う。