Exception: Bundler::Fetcher::CertificateFailureError
- Inherits:
-
HTTPError
- Object
- StandardError
- BundlerError
- HTTPError
- Bundler::Fetcher::CertificateFailureError
- Defined in:
- lib/bundler/fetcher.rb
Overview
This is the error raised if OpenSSL fails the cert verification
Instance Method Summary collapse
-
#initialize(remote_uri) ⇒ CertificateFailureError
constructor
A new instance of CertificateFailureError.
Methods inherited from BundlerError
Constructor Details
#initialize(remote_uri) ⇒ CertificateFailureError
Returns a new instance of CertificateFailureError.
19 20 21 22 23 24 25 26 |
# File 'lib/bundler/fetcher.rb', line 19 def initialize(remote_uri) super "Could not verify the SSL certificate for #{remote_uri}.\nThere" \ " is a chance you are experiencing a man-in-the-middle attack, but" \ " most likely your system doesn't have the CA certificates needed" \ " for verification. For information about OpenSSL certificates, see" \ " bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile" \ " sources and change 'https' to 'http'." end |