Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
When using 'net/https' and ssl, how do I disable verification of the resulting SSL certificate?
The following code will disable verification of the certificate. Note that this necessarily implies that invalid certificates will be accepted.
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?