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
To replace the old version with the new one, you need to change the link for it. Type that command to terminal.
brew link --force openssl
Check the version of openssl again. It should be changed.