Synchronize UID lists on public and private key -- how?

Hauke Laging mailinglisten at hauke-laging.de
Wed Dec 18 13:02:15 CET 2013


Am Di 17.12.2013, 10:40:21 schrieb Doug Barton:
> On 12/17/2013 01:09 AM, Lev Serebryakov wrote:
> |   Is it possible to synchronize UID list without transferring "new"
> 
> version
> 
> | of private key from B to A by external means?
> 
> No.

I can reproduce the problem but it doesn't make any sense to me. Why are UIDs 
stored in the secring...?

But it is possible to sync pubring and secring (i.e. the answer to the OP's 
question is yes, not no; whether it's fun...):

mkdir split-pub split-sec
cp public.gpg split-pub
cp secret.gpg split-sec
cd split-pub
gpgsplit public.gpg

# looks like this:
000001-006.public_key
000002-013.user_id
000003-002.sig
000004-013.user_id
000005-002.sig
public.gpg

cd ../split-sec
gpgsplit secret.gpg

# looks like this:
000001-005.secret_key
000002-013.user_id
000003-002.sig
secret.gpg

cp ../split-pub/000004-013.user_id ../split-pub/000005-002.sig .
cat 00000* >secret.split.gpg

gpg --delete-secret-key 0x12345678
gpg --import secret.split.gpg


Hauke
-- 
Crypto für alle: http://www.openpgp-schulungen.de/fuer/unterstuetzer/
http://userbase.kde.org/Concepts/OpenPGP_Help_Spread
OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 572 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20131218/a89c48b5/attachment.sig>


More information about the Gnupg-users mailing list