Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install latest version of openssl Mac OS X El Capitan

I have used brew install openssl to download and install openssl v1.0.2f, however, it comes back saying:

A CA file has been bootstrapped using certificates from the system keychain. To add additional certificates, place .pem files in   /usr/local/etc/openssl/certs  and run   /usr/local/opt/openssl/bin/c_rehash  This formula is keg-only, which means it was not symlinked into /usr/local.  Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries  Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add to your build variables:      LDFLAGS:  -L/usr/local/opt/openssl/lib     CPPFLAGS: -I/usr/local/opt/openssl/include 

And when I do openssl version -a it always gives me:

OpenSSL 0.9.8zg 14 July 2015 built on: Jul 31 2015 platform: darwin64-x86_64-llvm options:  bn(64,64) md2(int) rc4(ptr,char) des(idx,cisc,16,int) blowfish(idx)  compiler: -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DMD32_REG_T=int -DOPENSSL_NO_IDEA -DOPENSSL_PIC -DOPENSSL_THREADS -DZLIB -mmacosx-version-min=10.6 OPENSSLDIR: "/System/Library/OpenSSL" 

How can I replace the old version with the new one? I've searched a lot on how to do this, but the solutions online don't seem to work for me...

like image 264
Tometoyou Avatar asked Feb 01 '16 11:02

Tometoyou


People also ask

Is OS X El Capitan 10.11 6 still supported?

macOS El Capitan no longer supported by Apple El Capitan was replaced by Sierra 10.12, High Sierra 10.13 and the current release, macOS 10.14 Mojave. As a result SCS Computing Facilities (SCSCF) is phasing out software support for all computers running macOS 10.11 El Capitan and will end support on October 31, 2019.

Does macOS use OpenSSL?

The first option is the simplest one: do nothing. macOS has shipped with OpenSSL preinstalled since 2000.


1 Answers

Execute following commands:

brew update brew install openssl echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile source ~/.bash_profile 

You will have the latest version of openssl installed and accessible from cli (command line/terminal). Since the third command will add export path to .bash_profile, the newly installed version of openssl will be accessible across system restarts.

like image 98
shaunthomas999 Avatar answered Sep 20 '22 08:09

shaunthomas999