From 1e23cb6425c728150e874ed91cf2d97c3e0fd211 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Tue, 10 Jul 2018 00:32:48 +0200 Subject: [PATCH] More output --- pytools/gpgcard/restore_perso.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pytools/gpgcard/restore_perso.py b/pytools/gpgcard/restore_perso.py index a95bf49..9c20560 100644 --- a/pytools/gpgcard/restore_perso.py +++ b/pytools/gpgcard/restore_perso.py @@ -2,6 +2,7 @@ import binascii from gpgcard import GPGCard +print("Connecting to device ...") gpgcard = GPGCard() gpgcard.connect("pcsc:Ledger") gpgcard.get_all() @@ -9,12 +10,16 @@ gpgcard.get_all() gpgcard.verify_pin(0x81, "123456") gpgcard.verify_pin(0x83, "12345678") +print("Generating key 1/3 ...") gpgcard.generate_asym_key_pair(0x80, 0xb600) +print("Generating key 2/3 ...") gpgcard.generate_asym_key_pair(0x80, 0xb800) +print("Generating key 3/3 ...") gpgcard.generate_asym_key_pair(0x80, 0xa400) # Use 'gpg -k --with-subkey-fingerprint' to find fingerprints +print("Setting fingerprints ...") sig_fingerprint = b'A3F35A5124D47C3195FF07B7F85D93686A3A9063' aut_fingerprint = b'9C686F97A39B4A34E0C9D37CDBF45893AB524BBC' dec_fingerprint = b'E4FE54969060DBF2756FC0EFD8203245E390CAEA'