rubiii/httpi — pull request #49 by mwagg (2012-03-09 09:50:21+00:00)
Title: Fixing ssl so that cert and cert_key can be manually set

Hi,

I'm getting my ssl key and certificate from an instance of OpenSSL::PKCS12 so I'm manually setting cert and cert_key on HTTPI::Auth::SSL. The code for the read side of these properties meant that unless cert_file is also set, they will always return nil. So when HTTPI::Auth::SSL.present? is called it returns false and ssl is not used for my connection.

I've fixed the readers and added a couple of tests to prove it works.