Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update OpenSSL on OS X with Homebrew

I'm using MacOS X 10.7.5 and I need a newer OpenSSL version due to handshake failures. There are several tutorials on the internet and I tried the following:

brew install openssl brew link openssl --force 

Nevertheless, it does not work:

openssl version OpenSSL 0.9.8r 8 Feb 2011  brew unlink openssl && brew link openssl --force Unlinking /usr/local/Cellar/openssl/1.0.1e... 1139 links removed Linking /usr/local/Cellar/openssl/1.0.1e... 1139 symlinks created 

The SVN issue is not resolved either. Any ideas? I would rather not try the MacPorts way because it may interfere with Homebrew.

like image 384
Joachim Avatar asked Mar 03 '13 12:03

Joachim


People also ask

Where is OpenSSL path on Mac?

This can be done using the following command: ln -s /usr/local/opt/openssl/bin/openssl /usr/local/bin/openssl .


2 Answers

If you're using Homebrew /usr/local/bin should already be at the front of $PATH or at least come before /usr/bin. If you now run brew link --force openssl in your terminal window, open a new one and run which openssl in it. It should now show openssl under /usr/local/bin.

like image 95
Olaf Heinemann Avatar answered Sep 22 '22 22:09

Olaf Heinemann


installed openssl on mac with brew but nothing found on /usr/local/bin where other brew installed bins are located. Found my fresh openssl here:

/usr/local/opt/openssl/bin/openssl

Run it like this:

/usr/local/opt/openssl/bin/openssl version

I don't want to update OS X openssl, while some OS stuff or other 3rd party apps may have dependency on older version.

I also don't mind longer path than just openssl

Writing this here for all the Googlers who are looking for location of openssl installed by brew.

like image 29
Lukas Liesis Avatar answered Sep 21 '22 22:09

Lukas Liesis