16 lines
515 B
Bash
16 lines
515 B
Bash
# NEVER RUN ON YOUR OWN REAL GPG KEYS!!!!! THEY WILL BE DELETED!!!!!
|
|
set -x -e -u
|
|
CURVE=ed25519
|
|
#CURVE=nist256p1
|
|
(cd ~/.gnupg && rm -rf openpgp-revocs.d/ private-keys-v1.d/ pubring.kbx* trustdb.gpg /tmp/log *.gpg; killall gpg-agent || true)
|
|
gpg2 --full-gen-key --expert
|
|
gpg2 --export > romanz.pub
|
|
NOW=`date +%s`
|
|
trezor-gpg -t $NOW -v -e $CURVE --subkey "romanz" -o subkey.pub
|
|
gpg2 -K
|
|
gpg2 -vv --import <(cat romanz.pub subkey.pub)
|
|
gpg2 -K
|
|
|
|
trezor-gpg -t $NOW -v -e $CURVE "romanz" EXAMPLE
|
|
gpg2 --verify EXAMPLE.sig
|