Skip to content

Commit 3b4b0e5

Browse files
committed
Fix missing newlines in generate-certs.sh
Two openssl commands were merged onto the same line without a newline separator, causing `openssl genrsa` to receive the subsequent `req` command and its flags as extra arguments, which made it exit with "Extra arguments given." and fail the CI smoke-sharkey job. Assisted-by: Claude Code:claude-sonnet-4-6
1 parent e04e54a commit 3b4b0e5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/smoke/sharkey/generate-certs.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ mkdir -p "$OUT"
1313
HOSTS=(fedify-harness sharkey)
1414

1515
echo "→ Generating CA key + certificate..."
16-
openssl genrsa -out "$OUT/ca.key" 2048openssl req -x509 -new -nodes \
16+
openssl genrsa -out "$OUT/ca.key" 2048
17+
openssl req -x509 -new -nodes \
1718
-key "$OUT/ca.key" \
1819
-sha256 -days 1 \
1920
-subj "/CN=Smoke Test CA" \
2021
-out "$OUT/ca.crt"
2122
for HOST in "${HOSTS[@]}"; do
2223
echo "→ Generating certificate for $HOST..."
23-
openssl genrsa -out "$OUT/$HOST.key" 2048 openssl req -new \
24+
openssl genrsa -out "$OUT/$HOST.key" 2048
25+
openssl req -new \
2426
-key "$OUT/$HOST.key" \
2527
-subj "/CN=$HOST" \
2628
-out "$OUT/$HOST.csr"

0 commit comments

Comments
 (0)