First, download the OpenSSL 0.9.6C from the below link:
OpenSSL
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:
cd /users/<your_user_name>/desktop/
sudo mv oppenssh /usr/local/
sudo cd /usr/local/openssl
./config
make
make install
Now, OpenSSL is on your system.