How to build openssl with fips module on Linux and Windows?

Build Openssl With Fips Module On Windows

参考github上的文档
https://github.com/ColdDragon/windows-build-openssl-fips

Build Openssl With Fips Module On Linux

    • Build Openssl With Fips Module On Windows
  • Download source code from web
  • Uzip the source code
  • build and install fips module first.
  • build and install openssl with shared lib.
  • check the build result.

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

你可能感兴趣的:(工作点滴,Openssl,fips)