From 955bf7b7dd8a4b93bd4fb8ab18fe5464144b87c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Sat, 11 Apr 2020 14:07:36 +0200 Subject: [PATCH] bin: Add script to rescan GPG yubikeys --- bin/gpg-yubikey-rescan | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bin/gpg-yubikey-rescan diff --git a/bin/gpg-yubikey-rescan b/bin/gpg-yubikey-rescan new file mode 100755 index 0000000..417af71 --- /dev/null +++ b/bin/gpg-yubikey-rescan @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# From: +# https://security.stackexchange.com/questions/181551/create-backup-yubikey-with-identical-pgp-keys + +gpg-connect-agent "scd serialno" "learn --force" /bye