savonrb/httpi — pull request #118 by Envek (2014-06-24 08:42:43+00:00)
Title: Support for other SSL certificate keys, not only RSA

There is many key types in the wild: [RSA, DSA, EC, DH](http://ruby-doc.org/stdlib-2.0/libdoc/openssl/rdoc/OpenSSL/PKey.html).

We're currently working with service, that requires HTTPS with GOST encryption and client certificate authentication. So, we need to specify GOST R 34.10-2001 certificate and keys, but HTTPI currently allows to use only RSA keys.

GOST R 34.10-2001 are treated as EC keys with [our current patches for Ruby](https://bugs.ruby-lang.org/issues/9830), but it may change in future.

This PR fixes this by letting Ruby itself decide what the type provided key is (it doing this here, called from [`OpenSSL::PKey.read`](http://ruby-doc.org/stdlib-2.0/libdoc/openssl/rdoc/OpenSSL/PKey.html): https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_pkey.c#L76)

P.S> Please, also merge savonrb/savon#588, we need this functionality to use from savon.