Skip to content

Fix SSLContext#ciphers= #222

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

Merged

Conversation

MariuszCwikla
Copy link
Contributor

Fixes #221 and jruby/jruby#3100

However, this functionality is not fully compatible with ruby openssl. I did some investigation and apparently jruby-openssl was implemented based on openssl 0.9.x. Ruby 2.7 is using openssl 1.1.1.
There was a refactoring in openssl between 0.9.x and 1.1.1, e.g. following does work with ruby, but not with jruby:

c.ciphers='AES128'

but this works with both:

c.ciphers='AES'

@p-mongo
Copy link

p-mongo commented Nov 27, 2020

Thank you for fixing this.

@p-mongo
Copy link

p-mongo commented Nov 27, 2020

This looks a-ok to me but I didn't verify exact behavior against MRI.

@headius
Copy link
Member

headius commented Dec 2, 2020

This is a good step forward! I will merge this but we need to do more verification and get a release out.

@headius headius merged commit 4f3894d into jruby:master Dec 2, 2020
@headius headius added this to the 0.10.5 milestone Dec 2, 2020
kares added a commit that referenced this pull request Apr 27, 2021
setSuite params indicates necessary cipher suite initialization
kares added a commit that referenced this pull request Apr 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SSLContext#ciphers= does not appear to work for any usage
3 participants