Recent Changes - Search:

MineTest?

IRC?

Develop?

PC?

Windows?

Linux?

PmWiki

pmwiki.org

edit SideBar

OpenSSL

This article describes how to build the Openssl library on the Linux. For safe work on the Internet network, is critically ensure the current version of this software product.

Downloading the source code from the official site.

wget https://www.openssl.org/source/openssl-1.1.1t.tar.gz \
     -O openssl-1.1.1t.tar.gz

Files unpacking and go to the build directory.

tar -xzvf openssl-1.1.1t.tar.gz
cd openssl-1.1.1t/

Create of a directory for distribution.

mkdir dist

Creation of a directory for installation.

mkdir -p /home/$(whoami)/dev/openssl_1.1.1t

Project configuration before build.

./config --prefix=/home/$(whoami)/dev/openssl_1.1.1t \
         --release \
         --libdir=/usr/local/lib/openssl \
         --openssldir=/usr/local/etc/ssl

Compilation and installation in working folder.

make
make test
make DESTDIR=/home/$(whoami)/build/openssl-1.1.1t/dist install

Copying library files to the system directory.

sudo mkdir -p /usr/local/etc/ssl
sudo mkdir -p /usr/local/lib/openssl
sudo cp -r /home/$(whoami)/build/openssl-1.1.1t/dist/usr/local/lib/openssl/* /usr/local/lib/openssl/
sudo cp -r /home/$(whoami)/build/openssl-1.1.1t/dist/usr/local/etc/ssl/* /usr/local/etc/ssl/

Custom path to OpenSSL libs.

export LD_LIBRARY_PATH=/usr/local/lib/openssl

Ldconfig setup.

sudo touch /etc/ld.so.conf.d/openssl_local.conf
sudo echo "/usr/local/lib/openssl" > /etc/ld.so.conf.d/openssl_local.conf
sudo ldconfig

Create symbolic link to root certs.

sudo cp -P /etc/ssl/certs/*.pem /usr/local/etc/ssl/certs/
sudo cp -P /etc/ssl/certs/*.0 /usr/local/etc/ssl/certs/

Copy files to dev folder.

cp -r /home/$(whoami)/build/openssl-1.1.1t/dist/home/$(whoami)/dev/openssl_1.1.1t/* \
      /home/$(whoami)/dev/openssl_1.1.1t
Edit - History - Print - Recent Changes - Search
Page last modified on April 28, 2023, at 06:50 AM