write script to build fips-compliant version of openssl 3.0.8

This commit is contained in:
Kenneth Kehl
2024-02-16 09:06:13 -08:00
committed by Carlo Costino
parent 9ecbfd24ff
commit 44379907d0

21
fips.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/zsh
# clone from openssl
git clone https://github.com/openssl/openssl.git
cd openssl
# get 3.0.8, the latest fips compliant version
git checkout 31157bc
mkdir build
cd build
# Configure for Ken's laptop architecture, plus enable FIPS (!!) plus specify output folder
../Configure darwin64-x86_64 enable-fips --debug --prefix=/Users/kkehl/Projects/fips/openssl/install
make
make install
# Check the version. There should be comments about FIPS enabled as well
/Users/kkehl/Projects/fips/openssl/install/bin/openssl version