Handle raw Google KMS signatures
This commit is contained in:
parent
6867f26f19
commit
4f765df2a9
1 changed files with 1 additions and 2 deletions
|
|
@ -187,11 +187,10 @@ trap 'rm -f "$encoded_signature_file"' EXIT
|
||||||
--quiet >/dev/null
|
--quiet >/dev/null
|
||||||
|
|
||||||
python3 - "$encoded_signature_file" "$signature_file" <<'PY'
|
python3 - "$encoded_signature_file" "$signature_file" <<'PY'
|
||||||
import base64
|
|
||||||
import pathlib
|
import pathlib
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
encoded_path = pathlib.Path(sys.argv[1])
|
encoded_path = pathlib.Path(sys.argv[1])
|
||||||
signature_path = pathlib.Path(sys.argv[2])
|
signature_path = pathlib.Path(sys.argv[2])
|
||||||
signature_path.write_bytes(base64.b64decode(encoded_path.read_text(encoding="utf-8").strip()))
|
signature_path.write_bytes(encoded_path.read_bytes())
|
||||||
PY
|
PY
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue