30
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

[Mac OS X] OpenSSLバージョンの更新

Last updated at Posted at 2017-06-03

私ももれなくbrewでinstallしたopensslのパスが適用されていなかったので
手順を記しておく

前準備

  1. openssl 自体を更新しておきましょう
$ brew update
$ brew upgrade openssl

入れてない人は
$ brew install openssl

  1. opensslのパスとバージョンを確認
$ which openssl
/usr/bin/openssl
$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016

上記の結果がbrewで入れたものと異なっていたら
下記手順でパスを書き換えましょう。
私は0.9.8zhだったので変更が必要でした。。

手順

  1. brewで入っているもののパス確認
    brew list openssl
$ brew list openssl
.
.
/usr/local/Cellar/openssl/1.0.2l/bin/openssl 
.
.
  1. パスを上書き
    $ echo 'export PATH=/usr/local/Cellar/openssl/1.0.2l/bin:$PATH' >> ~/.bash_profile
    $ source ~/.bash_profile

  2. 確認
    $ which openssl
    $ openssl version

30
20
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
30
20

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?