Try install jruby-openssl gem before anything else.