Skip to content

Commit d3d323f

Browse files
eisenhauerclaude
andcommitted
Fix OpenSSL config issue in CI environment
The spack-installed OpenSSL has a corrupted config file path. Work around this by setting OPENSSL_CONF=/dev/null when generating the self-signed certificate, since -subj provides all necessary information. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 9b76632 commit d3d323f

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

testing/adios2/engine/bp/generateXRootDHttpConfig.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,19 @@ mkdir -p xroot-http/etc/xrootd
2020
mkdir -p xroot-http/certs
2121
if [ ! -f xroot-http/certs/server.crt ]; then
2222
echo "Generating self-signed SSL certificate..."
23-
openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
23+
# Unset OPENSSL_CONF to avoid issues with spack's corrupted OpenSSL config path
24+
# The -batch flag and -subj provide all needed info without requiring a config file
25+
OPENSSL_CONF=/dev/null openssl req -x509 -nodes -days 365 -newkey rsa:2048 \
2426
-keyout xroot-http/certs/server.key \
2527
-out xroot-http/certs/server.crt \
26-
-subj "/CN=localhost"
27-
echo "Certificate generated successfully"
28+
-subj "/CN=localhost" \
29+
-batch
30+
if [ $? -eq 0 ]; then
31+
echo "Certificate generated successfully"
32+
else
33+
echo "ERROR: Certificate generation failed"
34+
exit 1
35+
fi
2836
fi
2937

3038
{

0 commit comments

Comments
 (0)