You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I thought I'd leave a note about this here because it has caused me some pain. Maybe it will help someone else someday.
This is in an OS X environment. I have seen it on Lion through Mavericks. I have tried all of the suggestions about resolving ssl certificate problems related to gem installation and RVM that I could google up and none of them were helpful.
The problem: Unable to install gems from our private gem server. Error reads as follows:
jruby-1.7.16.1@MagicDraw~$ gem install Foundation
ERROR: Could not find a valid gem 'Foundation' (>= 0), here is why: Unable to download data from https://user:password@gems.mycompany.com/ - certificate verify failed (https://user:password@gems.mycompany.com/latest_specs.4.8.gz)
Cause / Solution: This only occurs if the system java is set to use Java 7. It doesn't happen if the system is using Java 6. It turns out that I must have Java 7 installed. Java 6 and Java 7 can both be installed in OS X but obviously only one can be used at a time. I put the following lines in my .bash_profile and now toggle them as necessary. export JAVA_HOME='/usr/libexec/java_home -v 1.6' # export JAVA_HOME='/usr/libexec/java_home -v 1.7'
(note: the single quotes in the above statements need to actually be backticks. I couldn't figure out how to get them to show up. Tried backslash backtick which I think should've worked but it didn't.)
Anyway, seems like a pretty simple solution to the problem but frustrating as heck if you don't think of going down that path.
The text was updated successfully, but these errors were encountered:
The problem here sounds like your Java 1.7 install doesn't have current certificates. The certificats in the JDK need to be updated using keytool. Depending on the platform, the instructions to actually update the certs will differ slightly.
I believe @mpapis also wants to use keytool to update JDK certs when installing JRuby, but I'm not sure about the status of that change. I have personally had to import certificates into the JDK a few times, and it's not difficult.
RVM does automatically migrate OSX certificates to MRIs openssl during ruby installation, we can do the same for JRuby, there is also option to run the certificates update in cron.
I thought I'd leave a note about this here because it has caused me some pain. Maybe it will help someone else someday.
This is in an OS X environment. I have seen it on Lion through Mavericks. I have tried all of the suggestions about resolving ssl certificate problems related to gem installation and RVM that I could google up and none of them were helpful.
The problem: Unable to install gems from our private gem server. Error reads as follows:
jruby-1.7.16.1@MagicDraw~$ gem install Foundation
ERROR: Could not find a valid gem 'Foundation' (>= 0), here is why: Unable to download data from https://user:password@gems.mycompany.com/ - certificate verify failed (https://user:password@gems.mycompany.com/latest_specs.4.8.gz)
Cause / Solution: This only occurs if the system java is set to use Java 7. It doesn't happen if the system is using Java 6. It turns out that I must have Java 7 installed. Java 6 and Java 7 can both be installed in OS X but obviously only one can be used at a time. I put the following lines in my .bash_profile and now toggle them as necessary.
export JAVA_HOME='/usr/libexec/java_home -v 1.6'
# export JAVA_HOME='/usr/libexec/java_home -v 1.7'
(note: the single quotes in the above statements need to actually be backticks. I couldn't figure out how to get them to show up. Tried backslash backtick which I think should've worked but it didn't.)
Anyway, seems like a pretty simple solution to the problem but frustrating as heck if you don't think of going down that path.
The text was updated successfully, but these errors were encountered: