Skip to content

Commit 63d5657

Browse files
committed
fix: use consistent certificate naming in sign-rpm.sh
Changed certificate filenames from generic client.crt/client.key/ca.crt to chelon_client.crt/chelon_client.key/chelon_ca.crt for clarity. This matches the server-side naming convention and makes it clear these certificates are for the Chelon client. Signed-off-by: Scott R. Shinn <scott@atomicorp.com>
1 parent 5f3910f commit 63d5657

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tools/sign-rpm.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ done
2525

2626
# Check for client certificates
2727
CERT_DIR="${HOME}/.chelon/certs"
28-
if [ ! -f "$CERT_DIR/client.crt" ] || [ ! -f "$CERT_DIR/client.key" ] || [ ! -f "$CERT_DIR/ca.crt" ]; then
28+
if [ ! -f "$CERT_DIR/chelon_client.crt" ] || [ ! -f "$CERT_DIR/chelon_client.key" ] || [ ! -f "$CERT_DIR/chelon_ca.crt" ]; then
2929
echo "Error: Client certificates not found in $CERT_DIR"
30-
echo "Expected files: client.crt, client.key, ca.crt"
30+
echo "Expected files: chelon_client.crt, chelon_client.key, chelon_ca.crt"
3131
exit 1
3232
fi
3333

@@ -60,9 +60,9 @@ EOF
6060
echo ""
6161
echo "Sending signing request..."
6262
RESPONSE=$(curl -s -k \
63-
--cert "$CERT_DIR/client.crt" \
64-
--key "$CERT_DIR/client.key" \
65-
--cacert "$CERT_DIR/ca.crt" \
63+
--cert "$CERT_DIR/chelon_client.crt" \
64+
--key "$CERT_DIR/chelon_client.key" \
65+
--cacert "$CERT_DIR/chelon_ca.crt" \
6666
-X POST "https://$CHELON_HOST:$CHELON_PORT/api/v1/sign/rpm" \
6767
-H "Authorization: Bearer $CHELON_TOKEN" \
6868
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)