#! /bin/bash

. gen-helper.sh --directory=userid-revoked-2 ${@:+"$@"}

set -e

t0=20200101
t1=20200201
t2=20200301

key -t $t0 alice
key -t $t0 bob

# Add certifies a user ID that is not self-signed.
certify -t $t1 alice bob -a 120 --add-userid '<bob@other.org>'

# Bob revokes the user ID that he never signed, but Alice did.
revoke -t $t2 --add-userid '<bob@other.org>' bob retired

finish
