From: botp Date: 2011-01-26T13:31:57+09:00 Subject: Re: Unsupported digest algorithm (sha256). On Thu, Jan 20, 2011 at 12:11 PM, yf kuanfai wrote: > /usr/local/lib/ruby/1.8/openssl/digest.rb:55:in `initialize': > Unsupported digest algorithm (sha256). (RuntimeError) >        from /usr/local/lib/ruby/1.8/openssl/digest.rb:55:in > `initialize' >        from > /export/home/prjer/er/app/controllers/register_controller.rb:7:in `new' >        from > /export/home/prjer/er/app/controllers/register_controller.rb:7 >        from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `gem_original_require' >        from > /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in > `require' that errs comes from your app > but i can run the command: > > $ ruby -ropenssl -e 'p OpenSSL::Digest::Digest.new("sha256")' > # e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855> > $ ruby -e "puts require('openssl')" > true the simple ruby command works. openssl is working. one of the gems in your app is screwing openssl. suggest to list all the gems your app is using and open the gem one at a time until the digest returns the error. this way you can catch the offending gem kind regards -botp