Installing OpenSSL library on macOS and fixing some issues

Installing OpenSSL

brew info openssl
brew install openssl
#or#
brew upgrade openssl
openssl version -a
Output of “brew info openssl”
Output of “brew info openssl”
nano .profile
source ~/.profile
openssl version -a
Output of “openssl version -a”
Output of “openssl version -a”

Making OpenSSL Reachable

Output of “brew info openssl”
Output of “brew info openssl”
echo 'export DYLD_LIBRARY_PATH="/usr/local/Cellar/openssl@1.1/1.1.1g/lib:$DYLD_LIBRARY_PATH"' >> ~/.profile
source ~/.profile
brew install libssh2
#or#
brew upgrade libssh2

from 

Installing OpenSSL library on macOS Catalina | by Yaşar Yücel Yeşilbağ | Medium