Add a linux gpg role.

This commit is contained in:
Tom Alexander
2022-10-16 00:32:44 -04:00
parent 9ed2e209fd
commit f159ed886f
16 changed files with 308 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/env bash
#
# GPG associates token serial numbers with keys. When switching to
# another hardware token, run this script to associate the new token
# with the keys.
set -euo pipefail
IFS=$'\n\t'
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
gpg-connect-agent "scd serialno" "learn --force" /bye