{"record":{"id":"ef60335c6e59a8e4","repo":"ruby/rubygems","slug":"oh-no-your-ruby-doesn-t-have-openssl-so-it-can-t","errorCode":null,"errorMessage":"Oh no! Your Ruby doesn't have OpenSSL, so it can't connect to #{host}.\nYou'll need to recompile or reinstall Ruby with OpenSSL support and try again.","messagePattern":"Oh no! Your Ruby doesn't have OpenSSL, so it can't connect to #(.+?)\\.\nYou'll need to recompile or reinstall Ruby with OpenSSL support and try again\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/bundler/cli/doctor/ssl.rb","lineNumber":53,"sourceCode":"      end\n    end\n\n    def verify_mode\n      mode = @options[:\"verify-mode\"] || :peer\n\n      @verify_mode ||= mode.then {|mod| OpenSSL::SSL.const_get(\"verify_#{mod}\".upcase) }\n    end\n\n    def uri\n      @uri ||= URI(\"https://#{host}\")\n    end\n\n    def openssl_installed?\n      require \"openssl\"\n\n      true\n    rescue LoadError\n      Bundler.ui.warn(<<~MSG)\n        Oh no! Your Ruby doesn't have OpenSSL, so it can't connect to #{host}.\n        You'll need to recompile or reinstall Ruby with OpenSSL support and try again.\n      MSG\n\n      false\n    end\n\n    def output_ssl_environment\n      Bundler.ui.info(<<~MESSAGE)\n        Here's your OpenSSL environment:\n\n        OpenSSL:       #{OpenSSL::VERSION}\n        Compiled with: #{OpenSSL::OPENSSL_VERSION}\n        Loaded with:   #{OpenSSL::OPENSSL_LIBRARY_VERSION}\n      MESSAGE\n    end\n\n    def bundler_connection_successful?","sourceCodeStart":35,"sourceCodeEnd":71,"githubUrl":"https://github.com/ruby/rubygems/blob/86cbb817a38ce8477b181c17467a703ded3f2be8/lib/bundler/cli/doctor/ssl.rb#L35-L71","documentation":"Error \"Oh no! Your Ruby doesn't have OpenSSL, so it can't connect to #{host}.\nYou'll need to recompile or reinstall Ruby with OpenSSL support and try again.\" thrown in ruby/rubygems.","triggerScenarios":"Thrown at lib/bundler/cli/doctor/ssl.rb:53 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Recompile or reinstall Ruby with OpenSSL support, then retry"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"86cbb817a38ce8477b181c17467a703ded3f2be8","analyzedAt":"2026-08-23T06:27:48.159Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}