andre@768: #!/bin/bash andre@1366: cp "$2" "$3" andre@1366: CUR_DT=$(date +%s) andre@1366: sed -i "s/###SIGNATURE_DATE###/${CUR_DT}/" "$3" andre@1366: echo -e \\r\\nS_DT:$CUR_DT >> "$3" andre@1366: echo -e \\r\\nS:$(openssl dgst -sha256 -sign "$1" < "$2" | base64 -w0) >> "$3"