@@ -25,14 +25,14 @@ Chelon provides three ways to sign packages:
2525sudo dnf install chelon-client
2626
2727# Configure environment
28- export CHELON_URL=" https://gamera.atomicorp.com :5050"
28+ export CHELON_URL=" https://gamera:5050"
2929export CHELON_TOKEN=" your-token-id:secret"
3030export CHELON_CERT_DIR=" $HOME /.chelon/certs"
3131
3232# Copy client certificates
3333mkdir -p ~ /.chelon/certs
34- scp root@gamera: /etc/chelon/certs/chelon_client.* ~ /.chelon/certs/
35- scp root@gamera: /etc/chelon/certs/chelon_ca.crt ~ /.chelon/certs/
34+ scp /etc/chelon/certs/chelon_client.* ~ /.chelon/certs/
35+ scp /etc/chelon/certs/chelon_ca.crt ~ /.chelon/certs/
3636```
3737
3838### Sign an RPM
5454```
5555=== Signing RPM with Chelon ===
5656RPM: package.rpm
57- Chelon: https://gamera.atomicorp.com :5050
57+ Chelon: https://gamera:5050
5858
5959Reading RPM file...
6060RPM size: 1234567 bytes
@@ -82,7 +82,7 @@ chelon-sign-repomd --key-type modern repodata/repomd.xml
8282```
8383=== Signing Repository Metadata ===
8484File: repodata/repomd.xml
85- Chelon: https://gamera.atomicorp.com :5050
85+ Chelon: https://gamera:5050
8686
8787Reading metadata file...
8888File size: 12345 bytes
@@ -106,7 +106,7 @@ from chelon_client import ChelonClient
106106
107107# Initialize client
108108client = ChelonClient(
109- url = " https://gamera.atomicorp.com :5050" ,
109+ url = " https://gamera:5050" ,
110110 token = " your-token-id:secret" ,
111111 cert_dir = " /path/to/certs"
112112)
@@ -163,7 +163,7 @@ except ChelonClientError as e:
163163RPM_DATA=$( base64 -w0 package.rpm)
164164
165165# Call API
166- curl -k -X POST https://gamera.atomicorp.com :5050/api/v1/sign/rpm \
166+ curl -k -X POST https://gamera:5050/api/v1/sign/rpm \
167167 --cert ~ /.chelon/certs/chelon_client.crt \
168168 --key ~ /.chelon/certs/chelon_client.key \
169169 --cacert ~ /.chelon/certs/chelon_ca.crt \
@@ -182,7 +182,7 @@ curl -k -X POST https://gamera.atomicorp.com:5050/api/v1/sign/rpm \
182182REPOMD_DATA=$( base64 -w0 repodata/repomd.xml)
183183
184184# Call API
185- curl -k -X POST https://gamera.atomicorp.com :5050/api/v1/sign/repodata \
185+ curl -k -X POST https://gamera:5050/api/v1/sign/repodata \
186186 --cert ~ /.chelon/certs/chelon_client.crt \
187187 --key ~ /.chelon/certs/chelon_client.key \
188188 --cacert ~ /.chelon/certs/chelon_ca.crt \
@@ -216,7 +216,7 @@ curl -k -X POST https://gamera.atomicorp.com:5050/api/v1/sign/repodata \
216216sign_packages :
217217 stage : sign
218218 script :
219- - export CHELON_URL="https://gamera.atomicorp.com :5050"
219+ - export CHELON_URL="https://gamera:5050"
220220 - export CHELON_TOKEN="$CHELON_TOKEN" # From CI/CD secrets
221221 - export CHELON_CERT_DIR="/builds/.chelon/certs"
222222
@@ -251,7 +251,7 @@ sign: $(RPMS)
251251# !/bin/bash
252252set -e
253253
254- CHELON_URL="${CHELON_URL:-https://gamera.atomicorp.com :5050}"
254+ CHELON_URL="${CHELON_URL:-https://gamera:5050}"
255255CHELON_TOKEN="${CHELON_TOKEN:?CHELON_TOKEN not set}"
256256
257257# Sign all RPMs in directory
@@ -277,7 +277,7 @@ echo "All packages signed successfully"
277277
278278``` bash
279279# List configured keys
280- curl -k https://gamera.atomicorp.com :5050/api/v1/keys
280+ curl -k https://gamera:5050/api/v1/keys
281281```
282282
283283** Response:**
@@ -355,7 +355,7 @@ HTTP 401: Invalid token
355355echo $CHELON_TOKEN
356356
357357# Verify token exists on server
358- ssh root@gamera " sudo chelon-admin list-tokens"
358+ sudo chelon-admin list-tokens
359359```
360360
361361### Certificate Errors
@@ -391,10 +391,10 @@ Failed to connect to gamera.atomicorp.com port 5050
391391** Solution:**
392392``` bash
393393# Check if service is running
394- ssh root@gamera " sudo systemctl status chelon"
394+ sudo systemctl status chelon
395395
396396# Check firewall
397- ssh root@gamera " sudo firewall-cmd --list-all | grep 5050"
397+ sudo firewall-cmd --list-all | grep 5050
398398```
399399
400400---
0 commit comments