2

I'm trying to update OpenSSL following this tutorial

I run:

brew update && brew upgrade
brew install openssl
brew link --force openssl
sudo ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/bin/openssl
mkdir -p /usr/local/lib
ln -s /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib /usr/local/lib/
ln -s /usr/local/opt/openssl/lib/libssl.1.0.0.dylib /usr/local/lib/

When I check

ls -l /usr/local/opt/openssl

I get:

lrwxr-xr-x  1 Filipe  admin  24 Apr 29 12:48 /usr/local/opt/openssl -> ../Cellar/openssl/1.0.2k

But when I run:

openssl version -a

I get:

-bash: openssl: command not found

I already restarted Terminal, but no changes.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Filipe Ferminiano
  • 8,373
  • 25
  • 104
  • 174
  • I don't think System Integrity Protection will let you put your symbolic link in `/usr/bin/` unless you have disabled it. – Alexander O'Mara May 01 '17 at 16:12
  • I have disabled System Integrity @AlexanderO'Mara – Filipe Ferminiano May 01 '17 at 16:16
  • Also see [Homebrew refusing to link OpenSSL](http://stackoverflow.com/q/38670295), [Update OpenSSL on OS X with Homebrew](http://stackoverflow.com/q/15185661), [How to install latest version of openssl Mac OS X El Capitan](http://stackoverflow.com/q/35129977), [How to upgrade OpenSSL in OS X?](http://apple.stackexchange.com/q/126830), [Openssl installation using HomeBrew fails](http://superuser.com/q/486389), etc. – jww May 03 '17 at 01:15

1 Answers1

5

The issue is with your symbolic link:

sudo ln -s /usr/local/Cellar/openssl/1.0.2j/bin/openssl /usr/bin/openssl

Should be:

sudo ln -s /usr/local/Cellar/openssl/1.0.2k/bin/openssl /usr/bin/openssl

You have the incorrect version specified (j instead of k).

l'L'l
  • 44,951
  • 10
  • 95
  • 146