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

Ability to set SSL version explicitly #50

Closed
wants to merge 1 commit into from

Conversation

daliborfilus
Copy link

I had live nightmare this night.
I had to set SSL version to TLS v1 for one important service using Savon.
On ruby 1.8.7 EE it worked nicely, but 1.9.3 uses "SSLv23" auto-negotiate by default, which results in SSL verify errors.

And since Savon uses HTTPI I couldn't set this version no matter how hard I tried.
So I went monkeypatching frenzy.

This patch is not complete (e.g. it doesn't set ssl version on Net::HTTP and HTTPClient adapters), but its just a demo how I did this and I want you to see if it's a good idea to add this functionality.

@rubiii
Copy link
Contributor

rubiii commented Mar 22, 2012

interesting find. would you have time adding support for the other adapters as well?

@daliborfilus
Copy link
Author

I didn't have time to investigate the other adapters for such option... I can take a look over the weekend.

@nicdal nicdal mentioned this pull request Sep 4, 2012
@RichGuk RichGuk mentioned this pull request Oct 12, 2012
@rubiii
Copy link
Contributor

rubiii commented Oct 12, 2012

merged #64

@rubiii rubiii closed this Oct 12, 2012
@rubiii
Copy link
Contributor

rubiii commented Oct 12, 2012

merged support for specifying an ssl version into master and updated the readme.
please give it a try before it's going to be released.

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.

2 participants