3 ms·
Here's a reference/cheat sheet to using SSL with verification with Net::HTTP: https://github.com/augustl/net-http-cheat-sheet/blob/master/ssl_and_https.rb http
by augustl 16y ago
Here's a reference/cheat sheet to using SSL with verification with Net::HTTP:
https://github.com/augustl/net-http-cheat-sheet/blob/master/ssl_and_https.rb https://github.com/augustl/net-http-cheat-sheet/blob/master/...
It shows different ways of providing Net::HTTP with verification certificates.
- generalk 16y agoThank you. This is the best example I've seen of how to make Net::HTTP do the right thing with SSL certificates. The reason the VERIFY_NONE fix got so popular is that, by default, if you turn on SSL support in Net::HTTP in an otherwise working codebase, your calls fail with certificate errors. The docs (http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.html http://www.ruby-doc.org/stdlib/libdoc/net/http/rdoc/index.ht...) have absolutely no helpful information except for mentioning the default of VERIFY_PEER. If you're noodling around on your own you'll discover VERIFY_NONE works well before you discover how certificate stores work.