view ui/tests/append-sig.sh @ 1397:5d19ba5b64b0 0.9.11

Added tag 0.9.10 for changeset 05c62ad0c74f
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 26 Jan 2015 14:28:21 +0100
parents 289cb3554c55
children
line wrap: on
line source
#!/bin/bash
TMPFILE=$(mktemp)
cp "$2" "$TMPFILE"
CUR_DT=$(date +%s)
sed -i "s/###SIGNATURE_DATE###/${CUR_DT}/" "$TMPFILE"
echo -e \\r\\nS_DT:$CUR_DT >> "$TMPFILE"
cp "$TMPFILE" "$3"
echo -e \\r\\nS:$(openssl dgst -sha256 -sign "$1" < "$TMPFILE" | base64 -w0) >> "$3"
rm "$TMPFILE"

http://wald.intevation.org/projects/trustbridge/