More output
This commit is contained in:
parent
27cd81de7a
commit
1e23cb6425
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user