The general default installation on the system is 0.9.8 version of OpenSSL, which does not meet the needs. This is the time to reinstall OpenSSL.
openssl:https://www.openssl.org/source/download new version of the website
Decompression: TAR-ZXVF openssl-1.0.2h.tar.gz
Go to Unzip directory: CD OPENSSL-1.0.2H
Compile:./config the command is released and will stay for five seconds prompt 64-bit compilation method
Finally I compile with this statement:./configure darwin64-x86_64-cc--prefix=/usr/local/openssl--shared
After compiling prompts for configuration changes to execute make depend, do depend first
If you are not prompted to perform make depend, do the do && do install directly
Installation is usually done under the/usr/bin to establish a soft link to cover the system's original OpenSSL link: ln-s/usr/local/openssl/bin/openssl/usr/bin/openssl (use absolute path as far as possible)
If the system is allowed to overwrite, then the OpenSSL on our Mac is upgraded to the desired version, only need to reopen a terminal to see the effect (OpenSSL version-a view version)
If the system is not allowed to overwrite, we put the soft link to another directory, and then add the other directory to $path inside, must be in front of the/usr/bin (because the system's original OpenSSL soft connection under the/usr/bin), such as the soft link placed under the/usr/local: Ln-s/ Usr/local/openssl/bin/openssl/usr/local/bin/openssl, and then add/usr/local to $path inside: $PATH =/usr/local: $PATH. Finally, open a different terminal to view the OpenSSL version number.
MAC (Linux) Upgrade OpenSSL