Resolving missing link to libcrypto openssl on OSX from: http://stackoverflow.com/questions/38670295/brew-refusing-to-link-openssl
brew update
brew install openssl
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/
I got another problem when I uninstall 1.1 after install 1.0.
so I figure out to install both.
at first, cp the /usr/local/opt/openssl to /usr/local/Cellar/openssl/1.0.2t
then, uninstall 1.0 and reinstall 1.1.
finally, link the old version to /usr/local/opt/openssl with below