-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Gem Cert Doesn't Update Trusted Certificates #2080
Copy link
Copy link
Closed
Description
I'm having a problem or would like to suggest a feature.
My current problem is:
The command gem cert --add doesn't actually update the certificates used by the gem command.
This issue is related to:
- Network problems
- Installing a library
- Publishing a library
- The command line
gem - Other
Steps to Reproduce
Certificate name has been changed.
C:\ > gem cert --list
CN=my-companys-proxy-cert
C:\ > gem install asciidoctor-rfs
ERROR: SSL verification error at depth 1: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (CN=my-companys-proxy-cert)
ERROR: SSL verification error at depth 1: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (CN=my-companys-proxy-cert)
ERROR: SSL verification error at depth 1: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (CN=my-companys-proxy-cert)
ERROR: Could not find a valid gem 'asciidoctor-rfs' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
ERROR: SSL verification error at depth 1: self signed certificate in certificate chain (19)
ERROR: Root certificate is not trusted (CN=my-companys-proxy-cert)
C:\ > ruby -v
ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32]
C:\ > gem env version
2.6.13
I am running on Windows 7.
Known Workaround
If I add my company's certificate to the path C:\Ruby\lib\ruby\${version}\rubygems\ssl_certs\rubygems.org\ then the gem command can verify the certificate.
I will abide by the code of conduct.
Reactions are currently unavailable