Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for other SSL certificate keys, not only RSA #118

Merged
merged 1 commit into from
Jun 24, 2014
Merged

Support for other SSL certificate keys, not only RSA #118

merged 1 commit into from
Jun 24, 2014

Conversation

Envek
Copy link
Contributor

@Envek Envek commented Jun 24, 2014

There is many key types in the wild: RSA, DSA, EC, DH.

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, 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: 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.

rogerleite added a commit that referenced this pull request Jun 24, 2014
Support for other SSL certificate keys, not only RSA
@rogerleite rogerleite merged commit be7a76e into savonrb:master Jun 24, 2014
@rogerleite
Copy link
Member

Thank you @Envek! Release right now? cc @tjarratt

@tjarratt
Copy link
Contributor

Good call, we definitely needed a release with some of the changes coming through.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants