Skip to content

Changes to run SSL tests on OEL #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions tests/scripts/keys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ fi

mkdir -p ${CERTS_DIR}

OPENSSL_CNF_FILE=/etc/ssl/openssl.cnf
if [ ! -f ${OPENSSL_CNF_FILE} ] ; then
# Location in OEL, RHEL
OPENSSL_CNF_FILE=/etc/pki/tls/openssl.cnf
fi

# Generate random passwords for each run
PASS="${RANDOM}_${RANDOM}"
KEYPASS="${PASS}"
Expand All @@ -40,7 +46,7 @@ echo "${CAPASS}" | openssl genrsa -passout stdin -aes256 \
echo Generate Guardians CA certificate:
echo "${CAPASS}" | openssl req -passin stdin -new -x509 -days 3650 \
-reqexts SAN \
-config <(cat /etc/ssl/openssl.cnf \
-config <(cat ${OPENSSL_CNF_FILE} \
<(printf "\n[SAN]\nsubjectAltName=DNS:localhost,DNS:127.0.0.1")) \
-key ${CERTS_DIR}/guardians-ca.key \
-out ${CERTS_DIR}/guardians-ca.crt \
Expand All @@ -53,7 +59,7 @@ echo "${CAPASS}" | openssl genrsa -passout stdin -aes256 \
echo Generate Ravagers CA certificate:
echo "${CAPASS}" | openssl req -passin stdin -new -x509 -days 3650 \
-reqexts SAN \
-config <(cat /etc/ssl/openssl.cnf \
-config <(cat ${OPENSSL_CNF_FILE} \
<(printf "\n[SAN]\nsubjectAltName=DNS:localhost,DNS:127.0.0.1")) \
-key ${CERTS_DIR}/ravagers-ca.key \
-out ${CERTS_DIR}/ravagers-ca.crt \
Expand Down
3 changes: 1 addition & 2 deletions tests/scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ set -e

echo "Coherence CE 22.06.2"
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
COHERENCE_VERSION=22.06.4 \
make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test

echo "Coherence CE 22.06.2 with SSL"
Expand All @@ -23,5 +22,5 @@ RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \
COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \
COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \
COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \
COHERENCE_VERSION=22.06.4 PROFILES=,secure make clean certs test-cluster-shutdown remove-app-images \
PROFILES=,secure make clean certs test-cluster-shutdown remove-app-images \
build-test-images test-cluster-startup just-wait test