#!/bin/sh # # Document how to create new GPG key for signing the APT repository. # This process is repeated every three years (see 3y expire below). # # The key definition format is described in # https://www.gnupg.org/documentation/manuals/gnupg/Unattended-GPG-key-generation.html set -e . $(dirname $0)/uiorepo-paths PUBKEY=$outdir/archive-key.asc if [ -e $PUBKEY ] ; then echo "error: public key $PUBKEY already exist, aborting" exit fi YEAR=$(date +%Y) GNUPGHOME=/site/deb/usit-automatic-signing-key KEYID="USIT's APT archive automatic signing key $YEAR" # Fairly large, somewhat non-standard. Not sure what a good number is. KEYLEN=3965 KEYDEF=$GNUPGHOME/new-key-definition cat > $KEYDEF < $PUBKEY echo "Remember to update the usit-archive-keyring package"