You need to follow these steps:
From https://www.openssl.org/source/, download latest openssl-fips package and unzip under
tar –zxvf openssl-fips-2.0.5.tar.gz
cd /home/user/openssl-fips-2.0.5
/Configure --prefix=/usr/local linux-generic32
make
make install
From https://www.openssl.org/source/, download latest openssl package and unzip under
tar –zxvf openssl-1.0.1h.tar.gz
Cd /home/user/openssl-1.0.1h
./Configure --prefix=/usr/local --with-fipsdir=/usr/local fips linux-generic32
make CC=fipsld FIPSLD_CC=gcc -j 8
make install
the binary openssl can be found at /usr/local/bin/openssl
[root@ssl86 hyu]# openssl version
OpenSSL 1.0.1h-fips 5 Jun 2014
#######here is tricky, go back to FIPS directory make install again.
cd /home/user/openssl-fips-2.0.5
make install
From https://www.stunnel.org/downloads.html, Download latest stunnel version 5.02 package and unzip under
tar –zxvf stunnel-5.02.tar.gz
cd /home/user/stunnel-5.02
./configure --enable-fips --with-ssl=/usr/local/ --prefix=/usr/local
make CC=fipsld FIPSLD_CC=gcc -j 8
make install
the stunnel binary can be found at /usr/local/bin/stunnel