databasedotcom gem version 1.2.2

閲覧: 200 回
最初の未読メッセージにスキップ

Danny Burkes

未読、
2011/10/24 1:39:352011/10/24
To: activesa...@googlegroups.com
I have released version 1.2.2 of the databasedotcom gem.  This version adds the ability to configure both the CA certificate location and/or the SSL verification mode used by the client. For example, if you want to turn off SSL verification for the client, you could configure it like so:

    client = Databasedotcom::Client.new(my_options)
    client.verify_mode = OpenSSL::SSL::VERIFY_NONE

Likewise, if you want to verify the peer, but use a custom CA certificates file, you can configure the client like so:

    client = Databasedotcom::Client.new(my_options)
    client.verify_mode = OpenSSL::SSL::VERIFY_PEER
    client.ca_file = "my/ca/file.crt"

If verify_mode is not set in the client, the default for the internal Net::HTTP instance is used, which differs by ruby version.  For 1.9.2, the Net::HTTP default verify mode is OpenSSL::SSL::VERIFY_PEER, but for 1.8.7, the Net:HTTP default verify mode is OpenSSL::SSL::VERIFY_NONE.

The new version is available immediately from rubygems.org

- D
全員に返信
投稿者に返信
転送
新着メール 0 件