[Mac] update openssl on mac

How to update OpenSSL on Mac using Homebrew. If the version still shows the old one, manually remove /usr/bin/openssl and create a symlink to the new version.

First of all, you need ‘brew’ (http://brew.sh/)

1
2
3
4
5
$ brew update
$ brew install openssl
$ brew link --force openssl
 
$openssl version -a

If it’s still the old version, you shoud:

1
2
3
$ sudo rm /usr/bin/openssl 	#remove the old binary 
$ sudo ln -s /usr/local/Cellar/openssl/1.0.1h/bin/openssl /usr/local/bin
(1.0.1h -> the latest version)

ref: http://apple.stackexchange.com/questions/126830/how-to-upgrade-openssl-in-os-x

comments powered by Disqus
Powered by Hugo. Theme Stack. All Rights Reserved.