gpg: fixup demo script
parent
67d58a5ae0
commit
3c2eb64e0d
@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -x
|
||||
CREATED=1460731897 # needed for consistent public key creation
|
||||
NAME="trezor_key" # will be used as GPG user id and public key name
|
||||
NAME="trezor_demo" # will be used as GPG user id and public key name
|
||||
|
||||
echo "Hello GPG World!" > EXAMPLE
|
||||
# Create, sign and export the public key
|
||||
./signer.py $NAME --time $CREATED
|
||||
trezor-gpg $NAME --time $CREATED -o $NAME.pub
|
||||
|
||||
# Install GPG v2.1 (modern) and import the public key
|
||||
gpg2 --import $NAME.pub
|
||||
gpg2 --list-keys $NAME
|
||||
# gpg2 --edit-key $NAME trust # optional: mark it as trusted
|
||||
|
||||
# Perform actual GPG signature using TREZOR
|
||||
./signer.py $NAME EXAMPLE
|
||||
./check.py $NAME.pub EXAMPLE.sig # pure Python verification
|
||||
# Perform actual GPG signature using TREZOR device
|
||||
trezor-gpg $NAME EXAMPLE
|
||||
|
||||
# gpg2 --edit-key trezor_key trust # optional: mark it as trusted
|
||||
# Verify signature using GPG2 binary
|
||||
gpg2 --verify EXAMPLE.sig
|
||||
|
Loading…
Reference in New Issue