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