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.
「net/https」と ssl を使用する場合、生成される SSL 証明書の検証を無効にするにはどうすればよいですか?
次のコードは、証明書の検証を無効にします。これは、無効な証明書が受け入れられることを必然的に意味することに注意してください。
http.verify_mode = OpenSSL::SSL::VERIFY_NONE if http.use_ssl?