-
-
Notifications
You must be signed in to change notification settings - Fork 925
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
Unlimited Strength Crypto "patch" #2224
Comments
Can you show us the error you're getting with the crypto hack in place? |
Let me uninstall Java and reinstall it hoping those 2 JARs go back to the original. I'll report back what I find. |
Fresh install of Java 8 on Windows, move my warbler-created Rails WAR file over, run
Added the following code to begin
security_class = java.lang.Class.for_name('javax.crypto.JceSecurity')
restricted_field = security_class.get_declared_field('isRestricted')
restricted_field.accessible = true
restricted_field.set nil, false
rescue java.lang.ClassNotFoundException
puts "JCE security not available on this platform"
end Ran And it works this time. Wow, now I wonder what caused the error before. In any case, thanks for making me walk through it again, and sorry for wasting your time! |
Thanks for confirming it at least! We always recommend latest JDK, so hopefully if there's any remaining problem it will fade with time. |
The programmatic way to fix the crypto restriction does get rid of the initial error message, but still fails for me due to another error related to not finding the algorithm.
This is with a Rails 4.2.0.beta4 app built on Mac OSX JRuby and deployed via executable WAR to Windows.
Installing the files worked fine, but I wonder if the programmatic instructions need some updating or clarification.
The text was updated successfully, but these errors were encountered: