gpg-agent override to import secret keys in 2.1

Ben McGinnes ben at adversary.org
Fri May 22 09:30:05 CEST 2015


On 22/05/2015 5:14 pm, Werner Koch wrote:
> On Thu, 21 May 2015 21:52, ben at adversary.org said:
> 
>> 	Does anyone know whether or not there is an override command
>> or option to force -agent to read/import secret keys after the initial
>> migration to version 2.1?
> 
> If you want to migrate the keys from a secring.gpg again to the 2.1
> secret key stoarge, you may either use
> 
>   gpg2 --batch --import secring.gpg
> 
> oops, of course that should read 
> 
>   gpg1 --export-secret-keys | gpg2 --batch --import
> 
> or you delete the .gpg-v21-migrated file and gpg2 will do it for you.
> Keys which already exist won't be imported again.

Ah-ha!  Brilliant, thanks Werner, this is exactly what I was looking for.



Regards,
Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 630 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20150522/264f2840/attachment.sig>


More information about the Gnupg-users mailing list