• caglararli@hotmail.com
  • 05386281520

Preference of private keys when selecting by UID

Çağlar Arlı      -    73 Views

Preference of private keys when selecting by UID

I have two private keys with the same UIDs in GnuPG, and would like to use the newer one in preference to the older.

When no key is specified, the default-key option takes care of this, but several of the Debian tools explicitly specify my email address as the UID to use, which makes gpg select the older key. I can work around this by explicitly specifying the key ID every time, but it is annoying over time.

How can I specify a preference order for available secret keys if multiple keys have the selected UID?