How build openssl with fips module on Linux?

Download source code from web

wget https://www.openssl.org/source/openssl-fips-2.0.16.tar.gz
wget https://www.openssl.org/source/openssl-1.0.2s.tar.gz

Uzip the source code

tar -xzvf openssl-fips-2.0.16.tar.gz
tar -xzvf openssl-1.0.2s.tar.gz

build and install fips module first.

cd openssl-fips-2.0.16
./config -fPIC
make
make install

build and install openssl with shared lib.

cd openssl-1.0.2s
./config fips -fPIC shared
make depend
make
make install

check the build result.

cd /usr/local/ssl
./bin/openssl version

the output should be:

OpenSSL 1.0.2s-fips  28 May 2019
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章