OpenSSL::Digest::SHA256 fails with thin when thin loaded before openssl
Reported by Peter Suschlik | December 23rd, 2008 @ 09:17 AM | in Future
When thin is loaded before openssl then OpenSSL::Digest::SHA256 won't work.
How to reproduce
require 'rubygems'
require 'thin'
require 'openssl'
p OpenSSL::Digest::SHA256.digest("hello wolrd") # will fail
Workaround
Load openssl before thin (e.g.
bin/thin)
require 'rubygems'
require 'openssl'
require 'thin'
p OpenSSL::Digest::SHA256.digest("hello wolrd") # SUCCESS!
Any thoughts?
I could provide some straces if needed
Kind regards
Peter
Comments and changes to this ticket
-
macournoyer December 23rd, 2008 @ 10:24 AM
Hey Peter,
Can you provide more info about the failure, eg.: backtrace, error message, etc..
-
macournoyer March 16th, 2009 @ 08:56 PM
- State changed from new to invalid
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป