mirror of
https://github.com/keycloak/keycloak.git
synced 2026-05-26 13:50:48 +00:00
090549c7de
Closes #49194 Signed-off-by: rmartinc <rmartinc@redhat.com>
23 lines
702 B
Bash
Executable File
23 lines
702 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
JAVA_VERSION=25
|
|
|
|
rm -f /etc/system-fips
|
|
dnf install -y "java-${JAVA_VERSION}-openjdk-devel"
|
|
fips-mode-setup --enable --no-bootcfg
|
|
fips-mode-setup --check | grep "FIPS mode is enabled."
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
export JAVA_HOME="/etc/alternatives/java_sdk_${JAVA_VERSION}"
|
|
|
|
# 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 -Dredhat.crypto-policies=true
|
|
if [ $? -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
|
|
./mvnw test -nsu -B -pl crypto/default,crypto/fips1402 -Dcom.redhat.fips=true -Dredhat.crypto-policies=true -Dorg.bouncycastle.fips.approved_only=true
|