2023-02-09 09:14:20 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-06-03 12:17:28 +00:00
|
|
|
dnf install -y java-21-openjdk-devel crypto-policies-scripts
|
2023-02-09 09:14:20 +00:00
|
|
|
fips-mode-setup --enable --no-bootcfg
|
|
|
|
fips-mode-setup --is-enabled
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2024-06-03 12:17:28 +00:00
|
|
|
echo "fips.provider.7=XMLDSig" >>/etc/alternatives/java_sdk_21/conf/security/java.security
|
|
|
|
export JAVA_HOME=/etc/alternatives/java_sdk_21
|
2023-08-02 12:55:33 +00:00
|
|
|
|
|
|
|
# Build all dependent modules
|
|
|
|
./mvnw install -nsu -B -am -pl crypto/default,crypto/fips1402 -DskipTests
|
|
|
|
|
|
|
|
./mvnw test -nsu -B -pl crypto/default,crypto/fips1402 -Dcom.redhat.fips=true
|
2023-02-09 09:14:20 +00:00
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2023-08-02 12:55:33 +00:00
|
|
|
./mvnw test -nsu -B -pl crypto/default,crypto/fips1402 -Dcom.redhat.fips=true -Dorg.bouncycastle.fips.approved_only=true
|