I want to use openssl with fips 140-2 to encrypt and decrypt files.
Source OS: ubuntu 18.04. I have followed below steps:
- I have uninstalled the existing openssl version.
- Downloaded openssl-3.1.0.tar.gz, and compiled it with following commands (./configure,make, make install).
- Now i have downloaded openssl-fips-2.0.16.tar.gz, and compiled with following commands (./configure,make, make install)
- export OPENSSL_FIPS=/root/openssl-fips-2.0.16
- executed the command from openssl-3.1.0 folder to enable openssl use fips module
./config --prefix=/usr/local/ssl enable-fipsfollowing make and make install. - Now if i execute followi command i am not seeing any fips version in
openssl version -a, alsoopenssl rand -fips 32 > aes_key.bingives me rand: Unknown option: -fips this error.
Not sure if i am doing it correct.