Upgrade openssl and macopenssl for MAC
The openssl version of mac is as follows:
$ openssl versionOpenSSL 0.9.8zh 14 Jan 2016
Check the latest version on github.
Use homebrew to install openssl
brew install openssl
If the openssl version is significantly different from the new version, you need to upgrade homebrew and reinstall it.
The default installation path of homebrew is as follows:
/usr/local/Cellar/openssl
Because the openssl provided by the system has some permission problems, it cannot be deleted. To use the latest version of openssl normally, you can use openssl installed in homebrew to create a proxy (that is, a shortcut). You can simply move it to the usage location and double-click it.
The openssl version is 1.0.2h _ 1. The exit command is exit (you can also exit directly). The generated (Public Key/private key/and so on) is in the (/Users/<username>/) directory by default. if the management is inconvenient, You can first Delete the built-in openssl (/usr/local/bin/openssl), and then follow the regular method to create a soft link pointing to the new openssl version.
Ln-s/usr/local/Cellar/openssl/<version>/bin/openssl/usr/local/bin/openssl
In this case, a new openssl proxy is automatically generated under (/usr/local/bin/). Exit the terminal and check that the openssl version is the new version. (Do not create a new version of openssl and then replace the old version of openssl. This method is not valid after testing)
OK.
References
Mac osx ei Capitan 10.11.6 upgrade comes with OpensslMac10.11 upgrade and install openssl