user1222324562
user1222324562

Reputation: 1075

Updating OpenSSL to 1.1.1 on MacOS

The new LTS 1.1.1 version of OpenSSL is out.

How can I upgrade to it using homebrew on MacOS?

Upvotes: 10

Views: 32217

Answers (4)

Gift Akari
Gift Akari

Reputation: 11

in my case rvm get master and then rvm install 3.2.0 works for me

Note: rvm install 3.2.0 is the version that am using, you might be using something different

Upvotes: 0

user1222324562
user1222324562

Reputation: 1075

Using brew:

brew update
brew install [email protected]
echo 'export PATH="$(brew --prefix)/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile
# Verify 
openssl version
# OpenSSL 1.1.1c  28 May 2019

Upvotes: 27

monday_blues_14
monday_blues_14

Reputation: 33

Same thing as the accepted answer but please do a source ~/.bash_profile for this to work.

Upvotes: 2

Michael
Michael

Reputation: 41

https://stackoverflow.com/a/56639316 is a good canonical answer, but if you're looking for something simpler / one-off you may be able to get by with just this:

$ brew install [email protected]
$ /usr/local/opt/openssl/bin/openssl version
OpenSSL 1.1.1g  21 Apr 2020

So you could do something like this for example:

$ /usr/local/opt/openssl/bin/openssl rand -hex 32
a37d26158b53c8b43faa26ce8291fec9

If you don't have brew on your computer you can install it in one-line by following the instructions here:

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

Upvotes: 3

Related Questions