-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Self-signed cert being ignored in Docker | Bundler::Fetcher::CertificateFailureError Could not verify the SSL certificate #749
Comments
Note that Ruby 2.7 is EOL. Please upgrade to Ruby 3.1 or later. https://www.ruby-lang.org/en/downloads/branches/ |
I'll show what my dockerfile looks like. The main issue is that it does not pickup the fact that I've added a private cert before running bundle install. I set the SSL_CERT environment variable to match the location before the bundle install step...It ignores it.
ERROR
|
Have you tried making a verified connection with net/http? Or, bypass Bundler/RubyGems for testing to see if your env/certs are working correctly? |
I'm going to try a new approach now. |
I'm using registry.docker.com/library/ruby:2.7.7-slim for building my docker image...The issue is; the SSL_CERT_FILE env var is not being complied with -- while running bundle install. I tried copying over the cert to ca-certificates...but that also got ignored. Do you have a method for verifying self-signed certificates in docker images?
The text was updated successfully, but these errors were encountered: