#!/bin/sh

if [[ $# -eq 0 ]] ; then
    echo "sign-key KEYID"
    exit
fi

KEY=$1
shift

echo "Receiving Key ${KEY}"
gpg --recv-keys ${KEY}

echo
echo

echo "Fingerprint of key ${KEY} is:"
gpg --fingerprint

echo
echo
echo "Proceed to sign key"
gpg --sign-key --ask-cert-level ${KEY}

gpg --send-key ${KEY}
