gpg-agent override to import secret keys in 2.1

Werner Koch wk at
Fri May 22 09:14:44 CEST 2015

On Thu, 21 May 2015 21:52, ben at 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.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gnupg-users mailing list