-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Install tries to update /etc/openssl instead of /usr/local/etc/openssl #3330
Comments
I can workaround this by switching to a user who does have sudo access and running |
+1 |
Moreover, in my case, it asks for the
Hello? I didn't give you permission to update my system certificates, now what the F? |
@exact When @costa Hello. Give |
@havenwood Thanks for the advice, now more importantly, why exactly |
@costa Additional binaries for OS X are now available, including 2.2.1. You can |
@havenwood I'm sorry I don't understand how this answers my question. |
I was just responding to this. You're mistaken. There is a precompiled statically linked binary available for 2.2.1 now! You can see you're using the precompiled binary in the log you posted above but you still have the option to compile from source if you prefer.
You can set
Configure your sudoers file with the behavior you prefer. If there are further sudo-related issues please open a new issue. |
@havenwood Thank you for your answer. I hope you don't mind me asking who's responsible for compiling the rubies. I'd like to see the reason behind "linking" Now, if |
@costa OS X has deprecated OpenSSL in favor of Common Crypto, so OS X doesn't ship with a version of OpenSSL that modern Ruby can compile against. The
The package-manager-provided OpenSSL satisfies the dynamic linking dependency when compiling Ruby 2.2.1. The SM-Framework-provided statically installed OpenSSL satisfies the static linking dependency for precompiled Ruby 2.2.1. This article discusses statically linking external dependencies with Ruby on OS X. All of the code is open source if you'd like to explore and if you have questions just drop by the #rvm Freenode IRC channel. |
@havenwood Thanks again. Now I've tried to look for that statically linked OpenSSL lib you mentioned, but I couldn't find it. Any ideas? |
Guys, I had the same problem and found my solution here. Blogged about it: |
@mpapis Ask to be mentioned here via this tweet :-)! |
@toadle Thanks so much for that blog post. It helped me a resolve the very same issue—one I've been troubleshooting all day. |
@toadle @postmodem it's not the same issue, your problem was that you had manually installed certificates in a custom path in your system and not installed them in OSX certificate store. anyway I think both issues could be "fixed" if RVM detected |
I use rvm-installed Rubies everywhere, and this came up for me originally when I started to use a self-signed certificate to secure a single sign-on application. Not quite sure if an empty, non-existent, nor custom But, Mislav Marohnić's http://mislav.uniqpath.com/2013/07/ruby-openssl/ article and his ssl-tools repo provided me with the solution/workaround I need. Basically, I would use I had to do this on my Linux host as well as copy the certificate to my Mac and do the same so that both the SSO application and others integrated with it are able to pass certificate verification when run from both machines. But this came up again when I upgraded from Ruby 2.2.0 to 2.2.2 (both on same install of Yosemite), because, annoyingly, |
@bitaxis RVM does not change you can still use the certificates generated Mislavs tool by adding them to the OSX certificate store. |
@MAPIS Good to hear that RVM does not change the Still loving RVM for all it does. Please keep up the excellent work! |
@toadle linked blog worked for me, though things starting working when I ran |
@toadle thanks for the blog post. Worked for me as well. 👍 |
@mpapis I have updated with that command and still experienced the same problem, so I believe this issue is still unfixed on the RVM side. Also |
I believe, rvm should somehow distinguish between different OS X versions and install corresponding binary. |
What's |
|
|
@Vanuan according to apple they have full backwards compatibility, it should be enough to specify flag back to which version you want support and anything upwards should be good. As it looks they do not keep that premise. all that apart, the problem here was about RVM using finally if there is a bug with |
This problem only happens with RVM ruby binaries and there is no working solution listed -- short of building ruby from source - how is this an invalid issue? |
Wow. |
Compiled binaries that cause issues for most users and don't fix anything aren't of any kind of benefit to those users -- you might see it as unrewarding (free work for github issues) but so is the process of finding out that X is not in fact supported. (I've already had a similar problem with fish-shell support: which has a shim and explicit instructions on the rvm website -- and which do not work and the issue for which was closed 'i.e. we don't support fish-shell - despite the official documentation'). |
please do not confuse problems, problem here in this ticket is not actually a bug, Apple does not provide package manager nor openssl, so anyone willing to provide software for OSX needs to statically link against openssl, as a side effect of this - anyone providing software needs to pick a path for the openssl configuration, by default UNIX / Linux uses if you have problems with anything else please open a separate issue, RVM contributors are here to help and solve the problems. |
@mpapis |
@Vanuan it is not hard, it is impossible, the one path that is set it is hard coded in the binary, to change it a new binary has to be compiled. |
@mpapis so, is it hard to compile a new binary? |
@mpapis Is there a way to install and use If there is a different way other than |
From top of my head: As long as Apple does not provide a default package manager for OSX with default paths there is only so much others can do to overcome their mess. |
@mpapis Perhaps a short warning then, when installing a precompiled binary? |
I don't know about others but for me Imho what really should happen during the binary install procedure is that it should check if ssl certs are present at the expected binary path -- if not install should end with a warning and provide the user with instructions for fixing this or suggest installing with --disable-binary (on a sidenote why does building ruby suddenly require dtrace, are these just the default ./configure settings supplied by rbenv/rvm?). |
@pik |
I don't know much about the osx ecosystem since I've mostly used linux - all I meant to say is that did not fix ssl errors with rvm for me (where as rbenv's install which builds from source works fine -- I assume rvm would as well with --disable-binary). |
@pik I would need to know more about your expectations, but yes, the |
I just ran into this issue with Ruby 2.1.4 using the AWS SDK. Re-installng via |
I'm trying to update ssl certificate and I'm being asked for password. Don't know what password they are asking for. Somebody please help me-thanks |
It needs |
it needs root password and i'm not sure what the root password is |
Then it wont work. |
Thank you thus far :) So I am trying to build a simple blog app and at the end of the log, I'm seeing: : railsapp |
@Cynth42 password has nothing to do with RVM. you should read this: http://askubuntu.com/questions/44418/how-to-enable-root-login |
On OS X Yosemite, I have a single-user install, I am not in sudoers and the directory
/etc/openssl
does not exist.In the initial check it correctly determines that the openssl certs are in /usr/local/etc/openssl/cert.pem and that they are up-to-date, but then tries to upgrade non-existent certs in /etc/openssl (which doesn't exist), requiring the use of
sudo
, to which I don't have access.Two issues:
a) why is it updating certs if it has already determined they're OK, and
b) why isn't it updating the correct cert file
The text was updated successfully, but these errors were encountered: