From 5648b91370e88114ae60bfd8ff09ddecb7f53f58 Mon Sep 17 00:00:00 2001 From: Wiktor Kwapisiewicz Date: Thu, 23 Nov 2023 10:46:21 +0100 Subject: [PATCH] Set and test cardholder name --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 74e1a82..c820bff 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: