Mailing List Archive

Adding notations with quick commands
Hello,

Is there a way to add notation to own key's User IDs with a quick command?

I'm looking for an alternative to this set of actions:

1. gpg --edit-key $KEY
2. notation
3. xyz@example.com=test
4. save

in a similar fashion to what --quick-* commands already do for other
actions (e.g. --quick-add-uid).

Context: I'm working on a small scheme that will rely on notations and
I'd like to make instructions for people as simple as possible.

Thank you in advance!

Kind regards,
Wiktor

--
https://metacode.biz/@wiktor

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Adding notations with quick commands [ In reply to ]
* Wiktor Kwapisiewicz via Gnupg-users <gnupg-users@gnupg.org> wrote:

> in a similar fashion to what --quick-* commands already do for other actions
> (e.g. --quick-add-uid).

--set-notation maybe?

HTH

--
left blank, right bald

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Adding notations with quick commands [ In reply to ]
Hi Markus,

On 09.06.2019 14:16, Markus Reichelt wrote:
>> in a similar fashion to what --quick-* commands already do for other actions
>> (e.g. --quick-add-uid).
>
> --set-notation maybe?

Yes, but as far as I understand --set-notation is only a modifier that
needs to be used with another command (e.g. --quick-sign-key).

I tried using it with my own fingerprint twice but it didn't succeed:

$ gpg -u F470E50DCB1AD5F1E64E08644A63613A4D6E4094 --set-notation
test@example.com=zzzz --quick-sign-key
F470E50DCB1AD5F1E64E08644A63613A4D6E4094
"Test McTestington <test@example.com>" was already signed by key
4A63613A4D6E4094
Nothing to sign with key 4A63613A4D6E4094
gpg: Key not changed so no update needed.

Kind regards,
Wiktor

--
https://metacode.biz/@wiktor

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: Adding notations with quick commands [ In reply to ]
On Sun 2019-06-09 19:17:10 +0200, Wiktor Kwapisiewicz via Gnupg-users wrote:
> Hi Markus,
>
> On 09.06.2019 14:16, Markus Reichelt wrote:
>>> in a similar fashion to what --quick-* commands already do for other actions
>>> (e.g. --quick-add-uid).
>>
>> --set-notation maybe?
>
> Yes, but as far as I understand --set-notation is only a modifier that
> needs to be used with another command (e.g. --quick-sign-key).
>
> I tried using it with my own fingerprint twice but it didn't succeed:
>
> $ gpg -u F470E50DCB1AD5F1E64E08644A63613A4D6E4094 --set-notation
> test@example.com=zzzz --quick-sign-key
> F470E50DCB1AD5F1E64E08644A63613A4D6E4094
> "Test McTestington <test@example.com>" was already signed by key
> 4A63613A4D6E4094
> Nothing to sign with key 4A63613A4D6E4094
> gpg: Key not changed so no update needed.

I don't know of a way to do this automatically if there is already a
certification from the current issuer over the OpenPGP User ID in
question, unless the old certification is local (non-exportable), and
the new one is not. in that special case, gpg seems fine with issuing
the new certification (and will respect --cert-notation or
--set-notation when doing so).

I've opened https://dev.gnupg.org/T4584 to track this bug. Please
follow up over there.

--dkg