[Mac] OpenSSL を Homebrew でインストール

Mac のデフォルトの OpenSSL を使わずに、Homebrew でインストールした OpenSSL を使うためのインストール手順をメモ。

デフォルトの OpenSSL を確認

% which openssl
/usr/bin/openssl
% openssl version

OpenSSL を Homebrew でインストール

% brew install openssl
% brew link openssl --force
% which openssl 
/usr/local/bin/openssl
% openssl version
OpenSSL 1.0.1e 11 Feb 2013

以上です。