MAC (Linux) Upgrade OpenSSL

Source: Internet
Author: User
Tags openssl version

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

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.