Re: Importing an off-card backup of the encryption key of a Nitrokey fails with "no user ID"

2017-10-25 Thread Ralf
Hi Peter, looking for difficult workarounds :-). If I'm wrong about that, just say so and I'll give an example. I'll whip out a blank OpenPGP card, create a test key and do it, posting the results on the list. I was hoping for something simple and I think eventually this should be simple;

Re: gpg-agent 2.1 persistent socket between sessions

2017-10-25 Thread Kostis Anagnostopoulos
On 25 October 2017 at 12:27, Laurent Lavaud wrote: > Hello, > > I would like to know what is the correct way to get a gpg-agent 2.1 > persistent socket between session ? > > I have some cronjob that must use a key stored in the agent. > > Actually the first time a

Re: Importing an off-card backup of the encryption key of a Nitrokey fails with "no user ID"

2017-10-25 Thread Peter Lebbing
On 25/10/17 16:15, Ralf wrote: > I was hoping for a simpler workaround to make GnuPG import the key. There is a pretty difficult workaround, using gpgsplit and standard Linux command-line tools. However, I get the sense you're not really looking for difficult workarounds :-). If I'm wrong about

Re: gpg-agent 2.1 persistent socket between sessions

2017-10-25 Thread martin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 25/10/17 15:54, Werner Koch wrote: > p.s. > The gnupg tarballs has a file > gnupg/doc/examples/systemd-user/gpg-agent.socket > which is an example on how to specify the location of the socket. The > problem might be that systemd likes to stop

Re: gpg-agent 2.1 persistent socket between sessions

2017-10-25 Thread Werner Koch
On Wed, 25 Oct 2017 11:27, laurent.lav...@ladtech.fr said: > Actually the first time a gpg-agent is launch, it create a socket in > /run/user/PID/gnupg/ but when i logout this folder is cleaned by systemd and > then if i come back i can't reconnect to the running gpg-agent because the > socket

Re: Importing an off-card backup of the encryption key of a Nitrokey fails with "no user ID"

2017-10-25 Thread Ralf
Hi, If you want to know the detail, this means that the encryption key is generated on the host and it is imported to the card. Generating on card and extracting is not possible. I was wondering about that, because on of the reasons that convinced me to buy a Nitrokey was the "the key

Re: Importing an off-card backup of the encryption key of a Nitrokey fails with "no user ID"

2017-10-25 Thread Ralf
There is no tool yet to do this. Let's track this at https://dev.gnupg.org/T3466 thanks, good to know I wasn't missing something obvious here. An option for "--import" sounds great, that was what I was looking for intuitively, something that would allow me to specify the user id / the hash

gpg-agent 2.1 persistent socket between sessions

2017-10-25 Thread Laurent Lavaud
Hello, I would like to know what is the correct way to get a gpg-agent 2.1 persistent socket between session ? I have some cronjob that must use a key stored in the agent. Actually the first time a gpg-agent is launch, it create a socket in /run/user/PID/gnupg/ but when i logout this folder

Re: Importing an off-card backup of the encryption key of a Nitrokey fails with "no user ID"

2017-10-25 Thread NIIBE Yutaka
Hello, Ralf wrote: > I generated keys on a Nitrokey and have chosen the option to make an > off-card backup of the encryption key: > > gpg: NOTE: backup of card key saved to > `/home/archi/.gnupg/sk_26D728A8F09033F1.gpg' If you want to know the detail, this means that

Re: Importing an off-card backup of the encryption key of a Nitrokey fails with "no user ID"

2017-10-25 Thread Werner Koch
On Tue, 24 Oct 2017 21:23, sourcel...@mailbox.org said: > but I had hoped that it is possible to use the backup key without a > card. Any hints here, is this possible? There is no tool yet to do this. Let's track this at https://dev.gnupg.org/T3466 Salam-Shalom, Werner -- Die Gedanken