LoginSignup
9
13

More than 1 year has passed since last update.

OpenSSL をソースからビルドする

Last updated at Posted at 2017-07-17

OpenSSLのバージョンが古かったのでソースからビルドしてみた

使用環境

OS・ミドルウェア バージョン
OS CentOS Linux release 7.3.1611 (Core)
OpenSSL OpenSSL 1.1.0h

やり方

  1. 必要なライブラリをyumでインストールする

    # yum -y install perl wget gcc gcc-arm-linux-gnu tcp_wrappers-devel
    
  2. tarファイルをダウンロードして展開する

    # cd /usr/local/src
    # wget https://www.openssl.org/source/openssl-1.1.0h.tar.gz
    # tar -zxf openssl-1.1.0h.tar.gz
    
  3. 展開してできたフォルダに移動してビルドする

    # cd openssl-1.1.0h/
    # ./config --openssldir=/usr/local/ssl
    # make
    # make install
    
  4. バージョンを確認する

    # openssl version
    OpenSSL 1.1.0f  25 May 2017
    
  5. 不要なファイル・フォルダを削除する

    # rm openssl-1.1.0f.tar.gz 
    rm: remove regular file ‘openssl-1.1.0f.tar.gz’? y
    # rm -rf openssl-1.1.0f/
    

いけたみたい。

追記

最初に元々あった OpenSSL を削除する手順がありましたが、他のミドルウェアでそれを参照していたりする場合に影響が出る可能性があるので手順をなくしました。

参考

以下のサイトを参考にしました。

9
13
0

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
9
13