I have used brew install openssl to download and install openssl v1.0.2f, however, it comes back saying:
brew install openssl
A CA file has been bootstrapped using c
You can run brew link openssl to link it into /usr/local, if you don't mind the potential problem highlighted in the warning message. Otherwise, you can add the openssl bin directory to your path:
brew link openssl
/usr/local
export PATH=$(brew --prefix openssl)/bin:$PATH