I'm using the OS X Sierra with the latest version of Homebrew. I'm trying to install openssl to get started using dotnet. But even though I tried to uninstall openssl and unlink its directory, but it still doesn't work.
I think the root problem I haven't been able to fix it here is that I could link the place where openssl is already installed to the directory of /usr/local/opt/openssl
brew link --force openssl
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew's openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/lib`