mirror of
https://github.com/flatcar/scripts.git
synced 2026-05-04 11:51:14 +02:00
signing/sign.sh: fix armoring
We use gpg --enarmor to convert the torcx manifest binary sigs to ascii armored ones. Unfortunately --enarmor just wraps the binary blob without realizing its a signature, which breaks torcx. Pipe the output through sed to fix the header.
This commit is contained in:
parent
ca1b785812
commit
a19b8fa161
@ -56,7 +56,10 @@ fero-client \
|
||||
--secret-key coreos-app-signing-key \
|
||||
${torcx_signature_arg}
|
||||
gpg2 --enarmor \
|
||||
--output "${DATA_DIR}/torcx_manifest.json.asc" \
|
||||
"${DATA_DIR}/torcx_manifest.json.sig-fero"
|
||||
--output - \
|
||||
"${DATA_DIR}/torcx_manifest.json.sig-fero" \
|
||||
| sed 's/ARMORED FILE/SIGNATURE/' \
|
||||
> "${DATA_DIR}/torcx_manifest.json.asc"
|
||||
|
||||
echo "=== Torcx manifest signed successfully. ==="
|
||||
rm -f "${DATA_DIR}/torcx_manifest.json.sig-fero"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user