view ui/tests/append-sig.sh @ 1369:948f03bb5254

Add signature time extraction for Linux and test for it in binverifytest
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 24 Nov 2014 14:43:10 +0100
parents 8c829345ecfa
children 289cb3554c55
line wrap: on
line source
#!/bin/bash
cp "$2" "$3"
CUR_DT=$(date +%s)
sed -i "s/###SIGNATURE_DATE###/${CUR_DT}/" "$3"
echo -e \\r\\nS_DT:$CUR_DT >> "$3"
echo -e \\r\\nS:$(openssl dgst -sha256 -sign "$1" < "$2" | base64 -w0) >> "$3"

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