Mailinglist Archive: opensuse (4208 mails)
| < Previous | Next > |
Re: [SLE] howto export gpg secret key to another machine
- From: Anders Johansson <andjoh@xxxxxxxxxx>
- Date: Mon, 5 Jul 2004 21:41:18 +0200
- Message-id: <200407052141.18165.andjoh@xxxxxxxxxx>
On Monday 05 July 2004 21.30, Richard Bos wrote:
> After that import the on machine B:
> :~> gpg --import blah
>
> gpg: key 8C9B4B0D: already in secret keyring
> gpg: Total number processed: 1
> gpg: secret keys read: 1
> gpg: secret keys unchanged: 1
^^^^^^^^^^^^^^^^^^^^
It was never changed, so was the passphrase the same on machine B?
>
> :~> gpg --list-keys
> :~> gpg --list-secret-keys
>
> /home/richard/.gnupg/secring.gpg
> --------------------------------
> sec 1024D/8C9B4B0D 2004-06-26 Richard Boss (rpm) <fake@xxxxxxxxxxxxxxx>
> ssb 1024g/0EF1D53E 2004-06-26
>
> Doesn't look to bad....
>
> But signing a package does not work, due to a failing passphrase....
> RPMS/i586> rpm --resign asterisk-samples-0.9.1-1.i586.rpm
> Enter pass phrase:
> Pass phrase check failed
>
> If I copy over the ~/.gnupg directory it works, but shouldn't it be
> possible to just export 1 key??
I seem to recall a discussion about this a while ago. What does your rpmmacro
%_gpg_name look like on machine B?
> After that import the on machine B:
> :~> gpg --import blah
>
> gpg: key 8C9B4B0D: already in secret keyring
> gpg: Total number processed: 1
> gpg: secret keys read: 1
> gpg: secret keys unchanged: 1
^^^^^^^^^^^^^^^^^^^^
It was never changed, so was the passphrase the same on machine B?
>
> :~> gpg --list-keys
> :~> gpg --list-secret-keys
>
> /home/richard/.gnupg/secring.gpg
> --------------------------------
> sec 1024D/8C9B4B0D 2004-06-26 Richard Boss (rpm) <fake@xxxxxxxxxxxxxxx>
> ssb 1024g/0EF1D53E 2004-06-26
>
> Doesn't look to bad....
>
> But signing a package does not work, due to a failing passphrase....
> RPMS/i586> rpm --resign asterisk-samples-0.9.1-1.i586.rpm
> Enter pass phrase:
> Pass phrase check failed
>
> If I copy over the ~/.gnupg directory it works, but shouldn't it be
> possible to just export 1 key??
I seem to recall a discussion about this a while ago. What does your rpmmacro
%_gpg_name look like on machine B?
| < Previous | Next > |