Skip to content

Commit 4f1dc62

Browse files
committed
collapse additional uids details
1 parent 5bce454 commit 4f1dc62

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ To suggest an improvement, send a pull request or open an [issue](https://github
1414
* [Expiration](#expiration)
1515
* [Passphrase](#passphrase)
1616
- [Create Certify key](#create-certify-key)
17-
- [Add additional uids (optional)](#add-additional-uids-optional)
1817
- [Create Subkeys](#create-subkeys)
1918
- [Verify keys](#verify-keys)
2019
- [Backup keys](#backup-keys)
@@ -431,11 +430,10 @@ export KEYFP=$(gpg -k --with-colons "$IDENTITY" | awk -F: '/^fpr:/ { print $10;
431430
printf "\nKey ID: %40s\nKey FP: %40s\n\n" "$KEYID" "$KEYFP"
432431
```
433432

434-
# Add additional uids (optional)
433+
<details>
434+
<summary>Add additional IDs (optional)</summary>
435435

436-
## Rationale
437-
438-
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:
436+
This is an optional step for use cases requiring [additional identities](https://github.com/drduh/YubiKey-Guide/issues/445), for example:
439437

440438
- different email addresses for different languages
441439
- different email addresses for professional versus personal but please see alternative reason below for not tying these addresses together
@@ -448,22 +446,22 @@ An alternative would be to have distinct keys but you would then require multipl
448446

449447
## Steps
450448

451-
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:
449+
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:
452450

453451
```console
454452
declare -a additional_uids
455453
additional_uids=("Super Cool YubiKey 2025" "uid 1 <[email protected]>")
456454
```
457455

458-
Add the additional uids to the key:
456+
Add the additional user IDs to the key:
459457

460458
```console
461459
for uid in "${additional_uids[@]}" ; do \
462460
echo "$CERTIFY_PASS" | gpg --batch --passphrase-fd 0 --pinentry-mode=loopback --quick-add-uid "$KEYFP" "$uid"
463461
done
464462
```
465463

466-
Adjust the trust of the additional uids to be ultimate:
464+
Adjust the trust of the additional IDs to *ultimate*:
467465

468466
```console
469467
gpg --command-fd=0 --pinentry-mode=loopback --edit-key "$KEYID" <<EOF
@@ -474,6 +472,7 @@ y
474472
save
475473
EOF
476474
```
475+
</details>
477476

478477
# Create Subkeys
479478

0 commit comments

Comments
 (0)