Update UIDs of GPG keypair
Update UIDs of GPG keypairs begin with:
smctl gpg keypair update-uids <GPG keypair alias or ID>
or
smctl gpg keypair edit-uids <GPG keypair alias or ID>
Flags
tabla 1. Flags to update UIDs for GPG keypairs
Shortcut | Flag | Description |
---|---|---|
--operation string | Overwrite, add, or remove access. | |
--uids stringArray | Specify the UIDs for the master key in the following format: <"name=<user_name>,comment:<comment>,email=<user_email_id">. | |
--account-id string | Account ID for the user. | |
-h | --help | Help to update UIDs for GPG keypairs |
Example 1
Description: Remove a UID from a master key.
Command:
smctl gpg keypair update-uids <GPG keypair alias or ID> --operation <overwrite, add or remove>
Command sample:
smctl gpg keypair update-uids master-key2 --uids="name=JohnDoe,email=john.doe@example.com,comment=signing" --operation remove
Example 2
Description: Replace the existing users IDs that manage this GPG key and replace it with the provided user IDs.
Command:
smctl gpg keypair update-uids <GPG keypair alias or ID> --uids=<"name=<user_name>,comment:<comment>,email=<user_email_id"> --uids=<"name=<user_name>,comment:<comment>,email=<user_email_id"> --operation <overwrite, add or remove>
Command sample:
smctl gpg keypair update-uids master-key2 --uids="name=JohnDoe,email=john.doe@example.com,comment=signing" --uids="name=JaneDoe,email=jane.doe@example.com,comment=signing" --operation overwrite