Upgrade openssl and macopenssl for MAC

Source: Internet
Author: User
Tags install openssl openssl version

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.