First, download the OpenSSL 0.9.6C from the below link:
NOTE: I used OpenSSL 0.9.6C and it worked for me. If you want the latest version, then go to the OpenSSL: Source, Tarballs link and download it.
After downloading, uncompress it to the Desktop and rename the folder as “openssl”. Then, open the Terminal window from /Applications/Utilities/ and run the below commands:
sudo mv oppenssh /usr/local/
sudo cd /usr/local/openssl
Now, OpenSSL is on your system.