Re: gpg-agent override to import secret keys in 2.1

2015-05-22 Thread Ben McGinnes
On 22/05/2015 5:14 pm, Werner Koch wrote:
> On Thu, 21 May 2015 21:52, b...@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



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg-agent override to import secret keys in 2.1

2015-05-22 Thread Werner Koch
On Thu, 21 May 2015 21:52, b...@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.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: gpg-agent override to import secret keys in 2.1

2015-05-21 Thread MFPA
Hi


On Thursday 21 May 2015 at 8:52:49 PM, in
, Ben McGinnes wrote:


> Hello, 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?

Doesn't it detect the presence/absence of the file "gpg-v21-migrated"?


-- 
Best regards

MFPA  

To steal ideas from one person is plagiarism; 
to steal from many is research.


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


gpg-agent override to import secret keys in 2.1

2015-05-21 Thread Ben McGinnes
Hello,
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?

The basic scenario here is a primary workstation which the initial
migration was performed on and a subsequent decommisioning of another
workstation and keys generated on that workstation need to be merged
with the primary.  Not to mention the inevitable situation of
replacing systems and needing to move everything, not just a subset.


Regards,
Ben



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users