From 86af867b9b712d8bc7458f6e160b451af6a877b8 Mon Sep 17 00:00:00 2001 From: Alestrix Date: Tue, 10 Sep 2024 17:34:54 +0200 Subject: [PATCH 1/3] Add info about key ID in readme The readme was lacking info about how to select the appropriate key. Added. --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index dddf30a..6c7798a 100644 --- a/README.md +++ b/README.md @@ -104,6 +104,16 @@ $ git config --get user.email $ smimesign --list-keys ``` +** Tell git which key to use for signing** + +If `smimesign --list-keys` lists more than one suitable signing key you will have to configure git which key to use by letting it know the key's `ID` from the `--list-keys` output: + +```bash +$ git config --global user.signingkey +``` + +Of course the configuration can also be done `--local` only. + ## Smart cards (PIV/CAC/Yubikey) Many large organizations and government agencies distribute certificates and keys to end users via smart cards. These cards allow applications on the user's computer to use private keys for signing or encryption without giving them the ability to export those keys. The native certificate stores on both Windows and macOS can talk to smart cards, though special drivers or middleware may be required. From 6be76a15f95c2ec56b8c2e19e5221e619e500467 Mon Sep 17 00:00:00 2001 From: Alestrix Date: Tue, 10 Sep 2024 17:37:57 +0200 Subject: [PATCH 2/3] rephrasing, fix subheading --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c7798a..5ee266c 100644 --- a/README.md +++ b/README.md @@ -104,9 +104,9 @@ $ git config --get user.email $ smimesign --list-keys ``` -** Tell git which key to use for signing** +**Tell git which key to use for signing** -If `smimesign --list-keys` lists more than one suitable signing key you will have to configure git which key to use by letting it know the key's `ID` from the `--list-keys` output: +`smimesign --list-keys` might lists more than one suitable signing key. In this case you will have to configure git which key to use. This can be done through the `user.signingkey` configuration key: ```bash $ git config --global user.signingkey From 42a0f5ef172d18fca8ee80531045008bc98ae77a Mon Sep 17 00:00:00 2001 From: Alestrix Date: Tue, 10 Sep 2024 17:39:15 +0200 Subject: [PATCH 3/3] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ee266c..9880531 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ $ smimesign --list-keys **Tell git which key to use for signing** -`smimesign --list-keys` might lists more than one suitable signing key. In this case you will have to configure git which key to use. This can be done through the `user.signingkey` configuration key: +`smimesign --list-keys` might list more than one suitable signing key. In this case you will have to tell git which key to use. This can be done through the `user.signingkey` configuration key: ```bash $ git config --global user.signingkey