Skip to content

Commit

Permalink
Set and test cardholder name
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-k committed Nov 23, 2023
1 parent b60a5f1 commit 5648b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ gpg --batch --pinentry-mode loopback --passphrase '' --export-secret-key no-pass
sh /start.sh
echo 12345678 > pin
opgpcard admin --card 0000:00000000 --admin-pin pin import no-passwd.pgp
opgpcard admin --card 0000:00000000 --admin-pin pin name "John Doe"
```

## Functions
Expand Down Expand Up @@ -406,7 +407,7 @@ all = Card.all()
card = Card.open("0000:00000000")

print(f"Card ident: {card.ident}")
print(f"Cardholder: {card.cardholder}")
assert card.cardholder == "John Doe"
```

Cards can be used for signing data:
Expand Down

0 comments on commit 5648b91

Please sign in to comment.