OpenSSL-1.0.2p ライブラリ の概要

The OpenSSL-1.0.2p package contains libraries relating to cryptography. These are useful for providing cryptographic functions to other packages, such as email applications and web browsers (for accessing HTTPS sites). This package provides only the libraries and headers for packages that have not yet been ported to openssl-1.1.x or later.

本パッケージは LFS-8.3 において正しくビルドでき動作することが確認されています。



OpenSSL-1.0.2p の依存パッケージ


MIT Kerberos V5-1.16.1


OpenSSL-1.0.2p ライブラリ のインストール




以下のコマンドを実行して OpenSSL-1.0.2p ライブラリ をビルドします。

 patch -Np1 -i ../openssl-1.0.2p-compat_versioned_symbols-1.patch &&

./config --prefix=/usr            \
         --openssldir=/etc/ssl    \
         --libdir=lib/openssl-1.0 \
         shared                   \
         zlib-dynamic             &&

make depend                       &&
make -j1

ビルド結果をテストする場合は make -j1 test を実行します。 なおテストスイートは並行処理はサポートされていません。

root ユーザーになって以下を実行します。

make INSTALL_PREFIX=$PWD/Dest install_sw                      &&

rm -rf /usr/lib/openssl-1.0                                   &&
install -vdm755                   /usr/lib/openssl-1.0        &&
cp -Rv Dest/usr/lib/openssl-1.0/* /usr/lib/openssl-1.0        &&

mv -v  /usr/lib/openssl-1.0/lib{crypto,ssl}.so.1.0.0 /usr/lib &&
ln -sv ../         /usr/lib/openssl-1.0        &&
ln -sv ../      /usr/lib/openssl-1.0        &&

install -vdm755                   /usr/include/openssl-1.0    &&
cp -Rv Dest/usr/include/openssl   /usr/include/openssl-1.0    &&

sed 's@/include$@/include/openssl-1.0@' -i /usr/lib/openssl-1.0/pkgconfig/*.pc


shared: This parameter forces the creation of shared libraries along with the static libraries.

zlib-dynamic: This parameter adds compression/decompression functionality using the libz library.

rm -rf /usr/lib/openssl-1.0: This will do nothing on a first install, but enables a later update. During the install the libraries are moved and replaced by symlinks. If you later upgrade to a future release of openssl-1.0.2 to fix newly discovered vulnerabilities, without this command the move would fail because the symlinks mean the source and destination files are identical.


インストールディレクトリ: /usr/lib/openssl-1.0, /usr/include/openssl-1.0


implements a wide range of cryptographic algorithms used in various Internet standards. The services provided by this library are used by the OpenSSL implementations of SSL, TLS and S/MIME, and they have also been used to implement OpenSSH, OpenPGP, and other cryptographic standards.

implements the Transport Layer Security (TLS v1) protocol. It provides a rich API, documentation on which can be found by running man 3 ssl.

最終更新日: 2018-08-17 14:28:07 +0900