Getting this error when doing rails new ...
while behind an SSL proxy?
Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate for https://rubygems.org/.
There 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 https://railsapps.github.io/openssl-certificate-verify-failed.html. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
Add your custom certificate authority in .pem format to Rubygems certs:
cp YOUR_CERT.pem "`gem which rubygems | sed 's/rubygems.rb//'`/rubygems/ssl_certs/rubygems.org/"