From 4f1dc6239f90314bbb8197479f7cc468747b5251 Mon Sep 17 00:00:00 2001 From: drduh Date: Sun, 13 Apr 2025 16:37:26 -0700 Subject: [PATCH] collapse additional uids details --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index b19e6d4..ed3e7c9 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ To suggest an improvement, send a pull request or open an [issue](https://github * [Expiration](#expiration) * [Passphrase](#passphrase) - [Create Certify key](#create-certify-key) -- [Add additional uids (optional)](#add-additional-uids-optional) - [Create Subkeys](#create-subkeys) - [Verify keys](#verify-keys) - [Backup keys](#backup-keys) @@ -431,11 +430,10 @@ export KEYFP=$(gpg -k --with-colons "$IDENTITY" | awk -F: '/^fpr:/ { print $10; printf "\nKey ID: %40s\nKey FP: %40s\n\n" "$KEYID" "$KEYFP" ``` -# Add additional uids (optional) +
+Add additional IDs (optional) -## Rationale - -This is an optional step if you have a use case which requires [additional identities](https://github.com/drduh/YubiKey-Guide/issues/445). Some non-exhaustive example use cases are: +This is an optional step for use cases requiring [additional identities](https://github.com/drduh/YubiKey-Guide/issues/445), for example: - different email addresses for different languages - different email addresses for professional versus personal but please see alternative reason below for not tying these addresses together @@ -448,14 +446,14 @@ An alternative would be to have distinct keys but you would then require multipl ## Steps -Define an array containing additional uids. As this is bash syntax, each array element should be surrounded by quotes and each element should be separated by a space: +Define an array containing additional user IDs. As this is bash syntax, each array element should be surrounded by quotes and each element should be separated by a space: ```console declare -a additional_uids additional_uids=("Super Cool YubiKey 2025" "uid 1 ") ``` -Add the additional uids to the key: +Add the additional user IDs to the key: ```console for uid in "${additional_uids[@]}" ; do \ @@ -463,7 +461,7 @@ for uid in "${additional_uids[@]}" ; do \ done ``` -Adjust the trust of the additional uids to be ultimate: +Adjust the trust of the additional IDs to *ultimate*: ```console gpg --command-fd=0 --pinentry-mode=loopback --edit-key "$KEYID" < # Create Subkeys